Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    haiau79
    @haiau79
    looking forward to opentelemetry community day!
    Pavol Loffay
    @pavolloffay
    Hi, I am trying to upgrade my custom build of the agent to 0.10.1. I am getting java.lang.NoClassDefFoundError: io/opentelemetry/api/OpenTelemetry in instrumentation unit tests in BaseTracer the OTEL API is on classpath in the tests but it fails in the BaseTracer
    1 reply
    Andreas Lindfalk
    @deadoggelito
    Hi! Was wondering if there is a single property to disable the java agent completely? Asking because it would be nice to able to build the image with the -javaagent (jvmFlag in jib) but only start using it in staging to begin with (set an env variable to disable it completely for prod)
    2 replies
    Andreas Lindfalk
    @deadoggelito
    A question about logging: we would like to output the logging from the agent in json-format, would this be possible in some way using the "otel.app.customlogmanager" property somehow? My understanding after looking through the code is that the logging output is done by slf4j-simple (which is shadowed), but that it is possible to override this here somehow: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/master/javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/AgentInitializer.java Ideally, we would like to use logback and its "net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder" so splunk get happy :)
    Qazi Zain Hasan
    @zianKazi
    Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:55680
    Is there a way to disable the default otel exporter?
    I am using the newrelic exporter but looks like the default otel exporter is also kicking in.
    Mateusz "mat" Rumian
    @mat-rumian
    This message was deleted
    Trask Stalnaker
    @trask
    hey all, no Java Instrumentation SIG meetings tomorrow, off for US Thanksgiving, see u all next week!
    Bhautik Pipaliya
    @bhautikpip
    Hi, I am trying to use these metrics (https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/master/instrumentation/oshi/library/src/main/java/io/opentelemetry/instrumentation/oshi/ProcessMetrics.java) for benchmarking. I have added oshi as a dependency to my sample springboot app's gradle build file and then running the agent with sample app but still don't see cpu and memory metric data collected. Any pointer on set up or how to debug this?
    4 replies
    Qazi Zain Hasan
    @zianKazi

    Get this error when trying to integrate with the agent:

    | [opentelemetry.auto.trace 2020-12-01 06:58:55:217 +0000] [grpc-default-executor-0] WARN io.opentelemetry.exporters.otlp.OtlpGrpcMetricExporter - Failed to export metrics
    | io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 873719415ns. [buffered_nanos=798355511, remote_addr=otel-collector/172.28.0.6:55680]

    Spans seem to be exporting fine and I can view the spans in Jaeger. However, metrics exporter shows the error above. Any help on the metrics would be appreciated.
    I also have prometheus setup as an exporter in the collector. Ideally, the metrics should end up there right?

    1 reply
    Marcin Grzejszczak
    @marcingrzejszczak
    Hi! When are you targeting GA?
    1 reply
    mattie
    @options_mateus_twitter
    Hi everyone! I'm planning to use opentelemetry-javaagent-all with opentelemetry-exporters-newrelic-auto and was wondering if metrics will be automatically enabled? If so, how can I disable it or how can I get only Tracing pushing data to Newrelic?
    Thanks in advance
    4 replies
    Paul Grave
    @paulgrav
    Morning. I’m using opentelemetry-javaagent-all with a JaxRS application. And it’s working great. Is there an easy/recommended way for me to attach the stacktrace to the current span when an exception occurs?
    2 replies
    haiau79
    @haiau79
    question about using the manual instrumentation with the auto instrumentation jar. How do I get the tracer properly? Tracer tracer = OpenTelemetry.getTracer("arg1", "arg2"); What do I use for arg1 and arg2 in this case? I am using 0.8.0 version of the auto instrumentation jar and opentelemetry api.
    John Watson
    @jkwatson
    the first arg is the "instrumentation name" which, if you're just instrumenting your app, can be whatever you want it to be ("myApplication"). It'll get appended as a span attribute at export time (usually).
    The 2nd arg is the "instrumentation version" which is optional, but you can also use to tag the version of your app, or just leave it out entirely
    Willi Schönborn
    @whiskeysierra
    Are there any plans to have the Azure Monitor exporter be part of the official OpenTelemetry repository/distribution?
    1 reply
    Samba Gaddipati
    @sambaatteamf1
    Hi All, It looks like the tracer config does not allow setting a sampler. The sampler is chosen based on the value of otel.config.sampler.probability(See https://github.com/open-telemetry/opentelemetry-java/blob/7c0b45209761443c2dd7f9a659ba6e99aded222b/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/config/TraceConfigBuilder.java#L132). I want to configure the javaagent to use jaeger remote sampler (https://github.com/open-telemetry/opentelemetry-java/tree/7c0b45209761443c2dd7f9a659ba6e99aded222b/sdk-extensions/jaeger-remote-sampler). Are there any plans to support such a configuration.
    Anuraag Agrawal
    @anuraaga
    OpenTelemetry Java Instrumentation 0.13.0 has been released! https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions/1942
    Pavol Loffay
    @pavolloffay
    @anuraaga @trask can be the context store https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/2b2ffa87ed6461ad0093f36ab56206d88fb4e146/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/InstrumentationModule.java#L327 shared across multiple instrumentation modules? Let's say module A stores object there and module B gets the object?
    5 replies
    Trask Stalnaker
    @trask

    hey everyone, we just enabled github discussions! if you wouldn't mind (re-)posting questions over there it will be much easier for us to track/respond compared to gitter. thanks!! :heart:

    https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions

    Cemalettin Koc
    @cemo
    Hi all, How can I drop some traces according to their tags such as url? I would like to completely drop some traces in the first place.
    1 reply
    Pavol Loffay
    @pavolloffay
    hi Buchi, happy new year to you and your family!
    1 reply
    do you mean to use distributed context/baggage to propagate token to downstream services?
    shivchelwa
    @shivchelwa

    Hi all, I am trying to enable auto instrumentation on my app and export the traces to jeager. As per the doc https://opentelemetry.io/docs/java/getting_started or https://github.com/open-telemetry/opentelemetry-java-instrumentation I should add below properties to start my app, but it does not tell where to find exporter for jeager. I could not locate it on maven central repository. Do I need to build it from source?

    java -javaagent:path/to/opentelemetry-javaagent-all.jar
    -Dotel.exporter=jeager
    -Dotel.exporter.jar=path/to/external-exporter.jar
    -jar myapp.jar

    Trask Stalnaker
    @trask
    hi @shivchelwa! we are trying to migrate away from gitter, would you mind re-posting your question over in github discussions?
    suryaaetna
    @suryaaetna
    Hi All, Wish you a happy new year all. Somehow I don't see Mongo traces in jaeger. Does anyone know how to enable them?
    HaloFour
    @HaloFour
    Good morning! Curious if Gitter is still a good venue for less formal discussions than the repo?
    4 replies
    vinitaaher
    @vinitaaher
    Hi All, I did auto instrumentation in java for my app and export the traces to jaeger. Following is the parameters I am passing to jvm and it is working.
    java -javaagent:tracinglib/opentelemetry-javaagent-all.jar\
    -Dotel.exporter=jaeger \
    -Dotel.exporter.jaeger.service.name=adService \
    -Dotel.exporter.jaeger.endpoint=localhost:14250 \
    -jar build/libs/hipstershop-0.1.0-SNAPSHOT-fat.jar -But now I want do Jaeger authentication using either bearer token or username and password.Please suggest how to do this.I have bearer token as well username and password also but I don't understand how to pass it in above jvm parameters.
    5 replies
    Mohasin
    @mohasin-ali

    Hi All, I am trying to set up the otlp exporter on http using the java system property (-Dotel.exporter.otlp.endpoint=localhost:8443/app) which is running on apache tomcat8.5 (ssl port or https configured) and also I have enabled the http2 as well on the same port but i am receiving the below exception and no request is logging at the server side. The exception is as follow:

    WARN io.opentelemetry.exporter.otlp.OtlpGrpcSpanExporter - Failed to export spans. Error message: INTERNAL: http2 exception

    Ps:the above mentioned otel endpoint has v1/traces and /v1/metrics configured (eg. https://localhost:8443/app/v1/traces)

    Here is the command to start the java program

    java -javaagent:/Users/Downloads/javaagent/opentelemetry/opentelemetry-javaagent-all.11.0.jar -Dotel.exporter.otlp.endpoint=localhost:8443/app/ -Dotel.exporter.otlp.protocol=http/json -cp randomHttp.jar com.HttpUrlTest

    Any help would be appreciated.
    Thanks.

    John Watson
    @jkwatson
    you're pointing the OTLP exporter at a tomcat instance?
    Is that tomcat instance somehow serving the grpc service endpoint?
    Mohasin
    @mohasin-ali
    Hi @jkwatson , the tomcat is not serving the grpc service endpoint, but there is a http2 endpoint enabled (that is why I have mentioned -Dotel.exporter.otlp.protocol=http/json).
    John Watson
    @jkwatson
    the OTLP exporter only exports to the grpc OTLP service
    you'll need to run the collector and point it at that, unless you have some other thing acting as an grpc service endpoint for it
    the java exporter does not support http/json currently
    Mohasin
    @mohasin-ali
    oh, is it? but in documentation it is mentioned like it is currently available. I have spent couple of days to tweak the configurations why it is not working on http1.1 or http2 endpoints, and finally I landed here.
    Thanks @jkwatson for your prompt reply.
    John Watson
    @jkwatson
    Just because how http/json should work has been specified doesn't mean that it's available in all SDKs and languages. I'd rely more on the documentation and code in a given language, rather than assuming that every feature in the specification has been implemented. See this file for what should be very close to the feature compatibility matrix: https://github.com/open-telemetry/opentelemetry-specification/blob/master/spec-compliance-matrix.md
    (note: that needs to be updated a bit for java, but it's pretty close)
    Mohasin
    @mohasin-ali
    Hi @jkwatson , I am trying to write custom java exporter (with the help of -Dotel.exporter.jar )where it extends and initialize the SpanExporter & MetricExporter class. In case of Automatic Instrumentation how to invoke the code present in the -Dotel.exporter.jar jar file ( I want to initialize and build the code related to SpanExporter and MetricExporter in the custom exporter).
    7 replies
    Mark Moses
    @Drecaise_twitter
    Hi all, I'm not sure if this is the correct place to ask (so please correct me if it isn't). I'm trying the opentelemetry-spring-starter (0.14.0) with a spring boot 2.3.7 application. That application is using RestTemplate to call another microservice. (I found that it's not adding any tracing context to the http request) by running it in the debugger it just hit the NoopTextMapPropagator. I thought the W3CTraceContextPropagator was supposed to be the default. Did I miss anything obvious and what's the best way to configure this (taking into account that I'd still like to use the default interceptor setup by the autoconfiguration).
    4 replies
    Bhavesh Mistry
    @bmistry13
    I have OTEL instrumented via Spring Sleuth and OpenTenemetry agent
    but traceid for Spring Sleuth is different from OpenTenemetry agent
    How can I make traceid to be same so they both report same traceid
    Bhavesh Mistry
    @bmistry13
    Any help or pointer will be greatly appreciated
    John Watson
    @jkwatson
    I think that Sleuth - OpenTelemetry compatibility is still an open question. There is an OTel sleuth bridge out there somewhere, but it's definitely still in experimental mode.
    Can you create a discussion topic for this in the opentelemetry-java-instrumentation project? The maintainers tend to monitor that more closely than gitter.
    Bhavesh Mistry
    @bmistry13
    @jkwatson , I am using Spring Slueth 3.0 with OpenTelemetry, but trace id that is generated via agent is different for spring slueth. So my question is if I implement my own tracer, will trace id match ?
    John Watson
    @jkwatson
    I don't know much about Sleuth, TBH, so I can't give you a quick answer to that.
    Bhavesh Mistry
    @bmistry13
    ok
    John Watson
    @jkwatson
    But, I do think you should start a discussion topic in the github repository because there will probably be people who know more there. :)