-
Notifications
You must be signed in to change notification settings - Fork 776
feat: add otlp kafka exporters #4841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add otlp kafka exporters #4841
Conversation
048deff to
1131bb9
Compare
|
This might be more appropriate in https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/exporter |
...ry-exporter-otlp-proto-kafka/src/opentelemetry/exporter/otlp/proto/kafka/_internal/common.py
Outdated
Show resolved
Hide resolved
...ry-exporter-otlp-proto-kafka/src/opentelemetry/exporter/otlp/proto/kafka/_internal/common.py
Outdated
Show resolved
Hide resolved
...er-otlp-proto-kafka/src/opentelemetry/exporter/otlp/proto/kafka/_internal/metric_exporter.py
Outdated
Show resolved
Hide resolved
...ter-otlp-proto-kafka/src/opentelemetry/exporter/otlp/proto/kafka/_internal/trace_exporter.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-otlp-proto-kafka/pyproject.toml
Outdated
Show resolved
Hide resolved
1131bb9 to
a62b19d
Compare
@herin049 the main reason I've put this here is its using the |
a62b19d to
dc1a6e4
Compare
dc1a6e4 to
788a2e7
Compare
@jackburridge All libraries in the contrib repo are updated in lockstep with the core repo, so there isn't really a need to keep it here for that reason. Given that I'm new, I'm not sure what the conventions are. Perhaps @xrmx can chime in here |
Description
Adds an OTLP Kafka exporter
Fixes #4828
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
This has been tested against Kafka, and the OpenTelemetry Collector.
All tests use the same setup. First the OpenTelemetry Collector is configured to debug the traces, logs, and metrics (
otel-collector-config.yaml):With docker compose you bring up a Kafka broker, and the collector (
docker-compose.yaml):This can then be started with:
Send some spans to the Kafka with the following Python:
Check the logs in the collector looking for
span-nameSend some logs to the Kafka with the following Python:
Check the logs in the collector looking for
This is an OpenTelemetry log record!Send some metrics updates to the Kafka with the following Python:
Check the logs in the collector looking for
my.counter.name, and check that it increments.Does This PR Require a Contrib Repo Change?
Checklist: