OTLP/gRPC or OTLP/HTTP sink #4356
Replies: 3 comments 1 reply
-
The main challenge will be to map events to the proper format. OpenTelemetry uses a complex data models for each of the supported signals: logs, metrics and traces. The resource linked by @rhys-evans only covers logs, which are currently the easiest format to generate. It is missing the instrumentation scope entirely, too. An OpenTelemetry sink most likely requires complex configuration on field mappings and aggregations. Specification of the intended signal type is required too, since OpenTelemetry uses different endpoints for each one of those. Switching between gRPC and http/protobuf transport is another feature and requires implementation of two (not so) different clients. The configuration might look similar to the OpenTelemetry Collector: sink:
- otlp/logs:
network:
endpoint: otlp-backend
tls:
cert: cert.pem
key: key.pem
resource:
service.name: field_key
instrumentation:
scope: field_key
attribute:
name: field_key
body: field_key However, there will be a lot more details. E.g. all (resource) attributes and the body can be of several types: string, integer, hash,... I wonder, whether this feature is not already provided in a more mature form by the OpenTelemetry Collector. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the response. There are a few things I was looking to cover off with this usecase, and they seem to be mostly non technical.
So our work flow is teams collect their own traces, logs etc, they then "process" them and store them in S3 / GCS, these S3 objects (which may contain multiple events per type) are then ingested, normalised and made visible to other consumers centrally. These central tools (storage and visualisation) may change over time but the desire is to align with the opentelemetry standards moving forward, as this seems to be the direction of travel of the "general" industry at present But it does pose the question of where dataprepper is going, is it aligned only to the opensearch ecosystem, primarily to the opensearch ecosystem or as a general ingestion and transformation tool to be used across multiple products. Note I am not saying 1 tool should cover all usecases, just trying to understand Thanks |
Beta Was this translation helpful? Give feedback.
-
I am happy to assist with PRs providing an OpenTelemetr< sink. Additionally, I can see a use-cases for exporting data from OpenSearch to OpenTelemetry. |
Beta Was this translation helpful? Give feedback.
-
Hi
I would like to send OTLP data (in particular trace data, for my use case) to any OTLP compatible backend.
Would this be supported by an HTTP sink "extension" ?
Ideally for me this would take batched trace data from S3 eg
OTEL Collector example: (not complete)
Dataprepper pipeline config example idea:
Thoughts ?
There seems to have been a attempt (I have not tested it) to do this in logstash here https://github.com/paulgrav/logstash-output-opentelemetry/blob/main/README.md
Beta Was this translation helpful? Give feedback.
All reactions