Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    HaloFour
    @HaloFour
    uh duh, IntelliJ issues were because I was running gradle with JDK 9 (which I think is the default). Bumped to 15 and everything is good.
    John Watson
    @jkwatson
    oh no. I'm surprised anything worked at all with java 9
    HaloFour
    @HaloFour
    No kidding, it's a shame the JDK check in the gradle script can't be enforced for gradle tasks which I think IntelliJ is running to dump the project structure
    John Watson
    @jkwatson
    yeah...that would be very useful
    HaloFour
    @HaloFour
    hrm, codecov failed but the report in the PR is 100% coverage for the impacted files ... ?
    John Watson
    @jkwatson
    yeah...don't worry much about what that report says. I can't make heads or tails of it
    HaloFour
    @HaloFour
    Cool. Don't like the X on the PR but as long as you guys are cool with it. Now I'll let you fight over the name. ;)
    John Watson
    @jkwatson
    yeah...the name... :) Fun times
    HaloFour
    @HaloFour
    It's really weird that AttributeMap#getTotalAddedValues reports the count of all added attributes, even if they had dupe keys.
    The Javadoc mentions that it could be higher if exceeding the maximum count, but it doesn't mention the case of "overwriting" an existing attribute.
    John Watson
    @jkwatson
    hmm. interesting point.
    which javadoc?
    The following would cause that getter to return 3
    span.setAttribute("foo", 1L).setAttribute("foo", 2L).setAttribute("foo", 3L);
    Which is fine, but was unexpected when the unit test failed :)
    John Watson
    @jkwatson
    we should probably just update the javadoc. I think in practice this won't matter too much, but having accurate docs is good
    btw, the codecov report says you have 100% coverage on the diff.
    just that the project as a whole is slightly below the 90% target
    HaloFour
    @HaloFour
    ah, ok
    HaloFour
    @HaloFour
        attributes.forEach(
            (attributeKey, value) -> {
              @SuppressWarnings("unchecked")
              AttributeKey<Object> attributeKeyObj = (AttributeKey<Object>) attributeKey;
              this.setAttribute(attributeKeyObj, value);
            });
    vnsmurthy
    @vnsmurthy
    I have been trying to use to open telemetry java auto instrumentation with a spring boot jms listener application and i notice that the instrumentation generates traces every time the listener is polling against only for an onMessage call. Is this expected?
    1 reply
    John Watson
    @jkwatson
    ANNOUNCEMENT: We are moving all discussions to github discussions : https://github.com/open-telemetry/opentelemetry-java/discussions and the #otel-java channel in the CNCF slack: https://cloud-native.slack.com/archives/C014L2KCTE3 . Please redirect all communications over to those two places. Thanks! We will likely delete or archive this channel very soon.
    alokmajumder
    @alokmajumder

    Hi I am trying to send trace data from an application using otlp exporter, but getting error

    Have configured the collector in GKE cluster and sending some trace data to the collector but getting error

    [BatchSpanProcessor_WorkerThread-1] WARN io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Error message: UNAVAILABLE: io exception
    [grpc-default-executor-2] WARN io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter - Failed to export metrics
    io.grpc.StatusRuntimeException: UNAVAILABLE: io exception

        at io.grpc.Status.asRuntimeException(Status.java:534)

    Commmand I am using to run is:
    java -javaagent:/Users/almaj9/Documents/work/ikeasolver/Opentelemetry-poc/SignalFX/opentelemetry-javaagent-all.jar -Dotel.traces.exporter=otlp -Dotel.exporter.otlp.endpoint=http://35.241.247.213:55680 -jar target/example-jaeger-jar-with-dependencies.jar

    code : https://git.build.ingka.ikea.com/alok-majumder/opentelemetry-poc.git

    1 reply
    Haytham Mohamed
    @Haybu
    hello, I am trying to receive telemetry data as application/json. I am testing with spans first, with a collector configured with otlp http protocol ("localhost:55681"), app agent to export via oltp (same endpoint). When I log out the span (with a collector exporter) I get this message "WARN io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Error message: INTERNAL: http2 exception". It works find If export from agent and receive on the collector via otlp grpc. Any help please on what I missed configuring. Thanks
    any example how to read as json ?
    1 reply
    John Watson
    @jkwatson
    ANNOUNCEMENT: We are moving all discussions to github discussions : https://github.com/open-telemetry/opentelemetry-java/discussions and the #otel-java channel in the CNCF slack: https://cloud-native.slack.com/archives/C014L2KCTE3 . Please redirect all communications over to those two places. Thanks! We will likely delete or archive this channel very soon.
    Manusha
    @manushawijekoon
    Hello, I am getting this error from the agent when it tries to export traces: "Failed to export spans. Error message : UNAVAILABLE: io exception"
    1 reply
    John Watson
    @jkwatson
    ANNOUNCEMENT: We are moving all discussions to github discussions : https://github.com/open-telemetry/opentelemetry-java/discussions and the #otel-java channel in the CNCF slack: https://cloud-native.slack.com/archives/C014L2KCTE3 . Please redirect all communications over to those two places. Thanks! We will likely delete or archive this channel very soon.
    Rishibha-tech
    @Rishibha-tech
    How do we link manual instrumentation traces with automatic instrumentation traces . They are not coming under same hierarchy
    2 replies
    John Watson
    @jkwatson
    ANNOUNCEMENT: We are moving all discussions to github discussions : https://github.com/open-telemetry/opentelemetry-java/discussions and the #otel-java channel in the CNCF slack: https://cloud-native.slack.com/archives/C014L2KCTE3 . Please redirect all communications over to those two places. Thanks! We will likely delete or archive this channel very soon.
    Bhavesh Mistry
    @bmistry13
    hi I am using Zipkin exporter, and I see agent is POST to zipkin INLINE, is there way to configure Async
    itsprakash84
    @itsprakash84
    My Exporter is Prometheus and jeager, I am not seeing http requests metric in Prometheus. Anyone used prometheus as exporter, please let me know
    1 reply
    wdengw
    @wdengw
    Hi, is there a SpanExporter that supports OTLP/HTTP?
    4 replies
    Sushant Pawar
    @mrsus
    Hi, I am getting following error in java agent -
    Caused by: io.opentelemetry.sdk.autoconfigure.ConfigurationException: Unrecognized value for otel.traces.exporter: prometheus
    1 reply
    matpil
    @matpil
    hi all!
    have you experiences some issue with CompletionStage?
    I want to monitoring tracing of an application that use akka-http as application server and call a lot of rest service with akka.http.javadsl.Http.get
    2 replies
    sanjaygopinath89
    @sanjaygopinath89

    HI All,

    I have create a Java spring boot application and using OTEL java agent to generate trace from application layer . I have deployed this app in a istio service mesh . I am collecting trace from application layer and also from Envoy /Istio proxy to same backend (jaeger) . But the trace is getting break. I can see trace generated from Istio/Envoy separately and the trace generated from OTEL java agent separately, like 2 different traces . There is no link between this 2 spans.

    How can I link the span generated from Envoy/Istio to the span generated by otel java agent , so that it will be part of a single trace

    2 replies
    Osher Vaknin
    @osherv
    Hi All,
    I want to create new agent based on your agent but without any instrumentation included.
    In order to do that, i imported:
    "io.opentelemetry.javaagent", "opentelemetry-javaagent-bootstrap"
    and then created my own instrumentation.
    In the final JAR, i can see my instrumentation included under "ints/io/opentelemery/javaagent/instrumentation". but when i test the agent, nothing instrumented.
    I tried also to include "opentelemerty-javaagent-tooling" and more dependencies but still nothing has changed.
    ** When i includes "opentelemetry-javaagent" my instrumentation works but also all the opentelemerty instrumentations includes as well.
    Thankes :)
    2 replies
    rbelfils
    @rbelfils
    Hello
    i try to use opentelemetry and i don't understand why i not see hibernate instrumentation in auto mode ?
    i run my petclinic with java -Dotel.traces.exporter=jaeger -Dotel.exporter.jaeger.endpoint=http://localhost:14250 -Dotel.resource.attributes=service.name=petclinic -javaagent:"${HOME}/.tennaxia/opentelemetry-javaagent-all-1.3.1.jar" -jar spring-petclinic-2.4.5.jar
    image.png
    someone have an idea why i not see instramentation hibernate as transaction / query / session ?
    Zane XiaoYe
    @Zane-XY
    Hi, for some reason, I can’t use auto instrumentation in my project.
    I have a CompletableFuture.supplyAsync() call, how should I manually instrument this? the parameter is a Supplier and can’t be wrapped using Context.wrap().
    8 replies
    woldie
    @woldie
    Hi @jkwatson, on Dec 10, 2020, you said that "you can't use the SDK if you're using the agent." I am using the latest 1.2.0 agent with the API jar 1.4.1. I am trying to use GlobalOpenTelemetry.getTracer to get the Tracer and then make custom Spans. Like Hector Salazar mentioned at the time, only my auto-instrumented calls had spans that showed up (in my case in SignalFX) and not my custom spans. Is there a better way to get the same Tracer that the agent uses so my custom spans get traced?
    1 reply
    prathibhapadma
    @prathibhapadma:matrix.org
    [m]
    Hi everyone, I m facing an issue while exporting spans to collector.
    ERROR io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter - Failed to export spans. Server is UNAVAILABLE. Make sure your collector is running and reachable from this network. Full error message:UNAVAILABLE: io exception
    cloud any one help me on this issue
    1 reply
    Roland Tepp
    @roland-tepp:matrix.org
    [m]
    Hi, I have a set of microservices implemented in Micronaut framework and I am wondering what would be the recommended approach instrumenting it with OTel?
    Should I simply try to use otel-java to code up instrumentation points or would you recommend adding otel agent to the binary at runtime? or some combination of both?
    John Watson
    @jkwatson
    Please note: OpenTelemetry no longer uses gitter. Please use the CNCF slack going forward.
    Roland Tepp
    @roland-tepp:matrix.org
    [m]
    thanks
    nikitsenka
    @nikitsenka_twitter
    Does opentelemetry-java agent supports ssl/tls? where can i find documentation how to configure?
    1 reply