Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eddeccc/span-exporter-showcase
https://github.com/eddeccc/span-exporter-showcase
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eddeccc/span-exporter-showcase
- Owner: EddeCCC
- License: apache-2.0
- Created: 2024-03-04T09:35:03.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T10:42:58.000Z (10 months ago)
- Last Synced: 2024-03-04T12:01:53.475Z (10 months ago)
- Language: Java
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# span-exporter-showcase
## Origin
The project originates from [inspectit-eum-server](https://github.com/inspectIT/inspectit-ocelot-eum-server).
In summary, the server is used to receive data (metrics & traces) collected from browsers and process them as OpenTelemetry-data.
This showcase extracts only the part responsible for traces.---
## Data flow
The showcase provides one REST endpoint: `/spans`It expects to receive span proto data, which will be converted to OpenTelemetry SDK spans.
After that, the SDK spans will be exported via OTLP to a collector.## Data origin
The received span proto data is created by [opentelemetry-exporter-trace-otlp-http](https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-http)
More precisely, we use this plugin to generate traces:
https://github.com/NovatecConsulting/boomerang-opentelemetry-pluginThere is an example for such data in the [test resources](src/test/resources/ot-trace-array-v0.48.0.json).
## Test case
The test class [OtlpGrpcTraceExporterIntTest](src/test/java/rocks/inspectit/oce/eum/server/exporters/tracing/OtlpGrpcTraceExporterIntTest.java)
tries to send data to the `/spans` and checks if the expected trace data will be exported by OTLP.The test `verifyTraceWithArrayValueSent()` fails with a `java.lang.ClassCastException`.