-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
area:logsPart of OpenTelemetry logsPart of OpenTelemetry logsarea:metricsPart of OpenTelemetry MetricsPart of OpenTelemetry Metricsarea:tracePart of OpenTelemetry tracingPart of OpenTelemetry tracingbugSomething isn't workingSomething isn't workingpkg:exporter:otlpRelated to the OTLP exporter packageRelated to the OTLP exporter package
Description
Description
This was surfaced in the discussion:#2509
The otlptracehttp client and otlptrace depend on grpc. This is a transitive dependency from internal/otlpconfig. This is counter to why we split these packages into separate mods in the first place.
Environment
- OS: [e.g. iOS]
- Architecture: [e.g. x86, i386]
- Go Version: [e.g. 1.15]
- opentelemetry-go version: [e.g. v0.14.0, 3c7face]
Steps To Reproduce
cd exporters/otlp/otlptrace/otlptracehttp
go mod graph | grep grpc
this should be emptygo mod why google.golang.org/grpc
this should report that module does not need grpc.
Expected behavior
The HTTP client should not depend on grpc.
Aditional information
otlpconfig
has a config struct that is shared between HTTP client and grpc. This has logic around extracting the variables from the environment. Because the config has settings for grpc this means importing otlpconfig
will import grpc (even if they are later pruned).
Metadata
Metadata
Assignees
Labels
area:logsPart of OpenTelemetry logsPart of OpenTelemetry logsarea:metricsPart of OpenTelemetry MetricsPart of OpenTelemetry Metricsarea:tracePart of OpenTelemetry tracingPart of OpenTelemetry tracingbugSomething isn't workingSomething isn't workingpkg:exporter:otlpRelated to the OTLP exporter packageRelated to the OTLP exporter package
Type
Projects
Status
Low priority