Support for HTTPS tracing protocol
danielloader opened this issue · comments
It looks from glancing at the source this action only supports gRPC for the OTEL traces, can I confirm this is correct?
Looks that you'd need to import/use https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto conditionally based on the environment variable for the protocol, or pickup and guess from the endpoint protocol prefix in the URI.
Was trying to use the action with grafana cloud but they haven't got gRPC support yet for ingesting OTEL tracing spans and as expected if the above assumption is true then it's an expected failure.
- name: Export Workflow Trace
uses: inception-health/otel-export-trace-action@latest
env:
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
with:
otlpEndpoint: https://otlp-gateway-prod-eu-west-2.grafana.net/otlp
otlpHeaders: "Authorization=Basic ${{ secrets.OLTP_ACTIONS_TRACES_HEADER }}"
githubToken: ${{ secrets.GITHUB_TOKEN }}
runId: ${{ github.event.workflow_run.id }}
I was looking at doing exactly the same thing @danielloader.
Did you manage to make progress with this?
I'll want to use http as well, any update?