Skip to content

Commit

Permalink
Add entry point for exporters with default protocol (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Sep 23, 2021
1 parent 8b5a967 commit 8b92d57
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
([#2096](https://github.com/open-telemetry/opentelemetry-python/pull/2096))
- Fix propagation bug caused by counting skipped entries
([#2071](https://github.com/open-telemetry/opentelemetry-python/pull/2071))
- Add entry point for exporters with default protocol
([#2093](https://github.com/open-telemetry/opentelemetry-python/pull/2093))
- Do not skip sequence attribute on decode error
([#2097](https://github.com/open-telemetry/opentelemetry-python/pull/2097))
- `opentelemetry-test`: Add `HttpTestBase` to allow tests with actual TCP sockets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ where = src
test =

[options.entry_points]
opentelemetry_exporter =
opentelemetry_traces_exporter =
jaeger_proto = opentelemetry.exporter.jaeger.proto.grpc:JaegerExporter
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-jaeger-thrift/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ where = src
test =

[options.entry_points]
opentelemetry_exporter =
jaeger_thrift = opentelemetry.exporter.jaeger.thrift:JaegerExporter
opentelemetry_traces_exporter =
jaeger_thrift = opentelemetry.exporter.jaeger.thrift:JaegerExporter
4 changes: 4 additions & 0 deletions exporter/opentelemetry-exporter-jaeger/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ install_requires =

[options.extras_require]
test =

[options.entry_points]
opentelemetry_traces_exporter =
jaeger = opentelemetry.exporter.jaeger.proto.grpc:JaegerExporter
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-opencensus/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ where = src
test =

[options.entry_points]
opentelemetry_exporter =
opencensus = opentelemetry.exporter.opencensus.trace_exporter:OpenCensusSpanExporter
opentelemetry_traces_exporter =
opencensus = opentelemetry.exporter.opencensus.trace_exporter:OpenCensusSpanExporter
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ test =
where = src

[options.entry_points]
opentelemetry_exporter =
otlp_proto_grpc_span = opentelemetry.exporter.otlp.proto.grpc.trace_exporter:OTLPSpanExporter
opentelemetry_traces_exporter =
otlp_proto_grpc = opentelemetry.exporter.otlp.proto.grpc.trace_exporter:OTLPSpanExporter
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-otlp-proto-http/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ test =
where = src

[options.entry_points]
opentelemetry_exporter =
otlp_proto_http_span = opentelemetry.exporter.otlp.proto.http.trace_exporter:OTLPSpanExporter
opentelemetry_traces_exporter =
otlp_proto_http = opentelemetry.exporter.otlp.proto.http.trace_exporter:OTLPSpanExporter
4 changes: 4 additions & 0 deletions exporter/opentelemetry-exporter-otlp/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ python_requires = >=3.6
packages=find_namespace:
install_requires =
opentelemetry-exporter-otlp-proto-grpc == 1.5.0

[options.entry_points]
opentelemetry_traces_exporter =
otlp = opentelemetry.exporter.otlp.proto.grpc.trace_exporter:OTLPSpanExporter
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-zipkin-json/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ where = src
test =

[options.entry_points]
opentelemetry_exporter =
zipkin_json = opentelemetry.exporter.zipkin.json:ZipkinExporter
opentelemetry_traces_exporter =
zipkin_json = opentelemetry.exporter.zipkin.json:ZipkinExporter
4 changes: 2 additions & 2 deletions exporter/opentelemetry-exporter-zipkin-proto-http/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ where = src
test =

[options.entry_points]
opentelemetry_exporter =
zipkin_proto = opentelemetry.exporter.zipkin.proto.http:ZipkinExporter
opentelemetry_traces_exporter =
zipkin_proto = opentelemetry.exporter.zipkin.proto.http:ZipkinExporter
4 changes: 4 additions & 0 deletions exporter/opentelemetry-exporter-zipkin/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ install_requires =

[options.extras_require]
test =

[options.entry_points]
opentelemetry_traces_exporter =
zipkin = opentelemetry.exporter.zipkin.proto.http:ZipkinExporter
4 changes: 2 additions & 2 deletions opentelemetry-sdk/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ where = src
[options.entry_points]
opentelemetry_tracer_provider =
sdk_tracer_provider = opentelemetry.sdk.trace:TracerProvider
opentelemetry_exporter =
console_span = opentelemetry.sdk.trace.export:ConsoleSpanExporter
opentelemetry_traces_exporter =
console = opentelemetry.sdk.trace.export:ConsoleSpanExporter
opentelemetry_id_generator =
random = opentelemetry.sdk.trace.id_generator:RandomIdGenerator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _import_exporters(
exporter_name,
exporter_impl,
) in _import_tracer_provider_config_components(
exporter_names, "opentelemetry_exporter"
exporter_names, "opentelemetry_traces_exporter"
):
if issubclass(exporter_impl, SpanExporter):
trace_exporters[exporter_name] = exporter_impl
Expand Down

0 comments on commit 8b92d57

Please sign in to comment.