Giter Site home page Giter Site logo

Comments (6)

cyrille-leclerc avatar cyrille-leclerc commented on July 26, 2024

Thanks @SeanHood for using this integration.
Could Honeycomb support passing the dataset name as an attribute of the traces and metrics? We identified the need for a generic mechanism to add such attributes, see #86 .

from opentelemetry-plugin.

SeanHood avatar SeanHood commented on July 26, 2024

I think they're probably set on using the headers for this configuration. It would be similar to your linked issue, but exposing the option to set multiple OTEL_EXPORTER_OTLP_HEADERS: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md Looks like Honeycomb maybe the only one who require two headers.

from opentelemetry-plugin.

cyrille-leclerc avatar cyrille-leclerc commented on July 26, 2024

Good catch for OTEL_EXPORTER_OTLP_HEADERS. I have used it to instrument applications and forgot about it when working on Jenkins instrumentation :-)
Totally makes sense.

from opentelemetry-plugin.

dcrowe avatar dcrowe commented on July 26, 2024

For those who come along later, here's the otel-collector config that worked for me:

# Based on Honeycomb tutorial:
# https://docs.honeycomb.io/getting-data-in/opentelemetry/otel-collector/

receivers:
  otlp:
    protocols:
      grpc: # on port 55680
      http: # on port 55681

processors:
  batch:

exporters:
  logging:
    loglevel: warn
  otlp/honeycomb:
    endpoint: "api.honeycomb.io:443"
    headers:
      "x-honeycomb-team": "..."
      "x-honeycomb-dataset": "..."

extensions:
  health_check:
  pprof:
  zpages:

service:
  extensions: [health_check, pprof, zpages]
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [logging, otlp/honeycomb]
    metrics:
      receivers: [otlp]
      exporters: [logging]

And here's a working Trace visualisation URL template:
https://ui.honeycomb.io/max-mine-iot/datasets/jenkins-builds/trace?trace_id=${traceId}&trace_start_ts=${startTime.epochSecond-60}

from opentelemetry-plugin.

cyrille-leclerc avatar cyrille-leclerc commented on July 26, 2024

Solved in 0.22 supporting the OTEL_EXPORTER_OTLP_HEADERS environment variable and the -Dotel.exporter.otlp.headers jvm property

from opentelemetry-plugin.

cyrille-leclerc avatar cyrille-leclerc commented on July 26, 2024

Can now also be defined in the "Configuration Properties" text area

from opentelemetry-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.