Protobuf definitions for the OpenTelemetry protocol (OTLP) (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sriman Swami c269bbef0f
Added json example for exponential histogram (#580)
2 months ago
..
README.md docs: update references to logging exporter (#581) 2 months ago
events.json Added example of an Event (#538) 4 months ago
logs.json fix: OTLP JSON examples (#516) 10 months ago
metrics.json Added json example for exponential histogram (#580) 2 months ago
trace.json fix: OTLP JSON examples (#516) 10 months ago

README.md

OTLP JSON request examples

This folder contains a collection of example OTLP JSON files for all signals that can be used as request payloads.

Trying it out

First run a OpenTelemetry collector with the following configuration:

receivers:
  otlp:
    protocols:
      http:

exporters:
  debug:
    verbosity: detailed

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [debug]
    metrics:
      receivers: [otlp]
      exporters: [debug]
    logs:
      receivers: [otlp]
      exporters: [debug]

Then send a curl request to the collector (e.g. for Logs):

curl -X POST -H "Content-Type: application/json" -d @logs.json -i localhost:4318/v1/logs

Remember to change the URL path when sending other signals (traces/metrics).