Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Daniel Dyla
    @dyladan
    hmm this smells to me like it is opening many concurrent connections, but i'm not 100% sure
    Mike Powers
    @mjpowersjr
    Yes, I don't think the connections are ever being cleaned up. If I switch to the GRPC exporter, but leave everything else the same, the number of fd's remain stable
    Daniel Dyla
    @dyladan
    going into a meeting
    Mike Powers
    @mjpowersjr
    I've tried using lsof to monitor the number of open connections on both the collector & the node process. They both seem to grow, which made me start looking towards the http exporter as the culprit. That being said, it seems like (maybe?) the otel collector http receiver should be timing out the connections eventually as well?
    Daniel Dyla
    @dyladan
    ok meeting is over. Yes there should likely be some timeouts and I believe there is intended to be some restriction on concurrent connections. I'm looking into the spec right now
    9 replies
    Jean Jordaan
    @jean
    hi all .. what's the simplest way to start sending arbitrary manual logs from a web app to a collector?
    like one import {} and one .log() line, rather than 7 lines of imports and 20 lines of setup code ...
    Jean Jordaan
    @jean
    would fluent-logger-node work, sending to the fluentforwardreceiver?
    Jean Jordaan
    @jean
    how about getpino.io ? I don't suppose anyone knows of a pino transport that can send to an OpenTelemetry receiver?
    Daniel Dyla
    @dyladan
    not sure. i am not sure the collector even supports logs yet
    ah i see it does. i have no experience with using the collector for logs so I can't really give any advice
    Sangit Dhanani
    @essjde_twitter
    Hi all, I'm trying to run opentelemetry-node examples (basic-tracer-node) but despite following the instructions im getting TypeError: opentelemetry.setSpan is not a function
    Could anyone help me with this?
    Bartlomiej Obecny
    @obecny
    there was a change in api so you are probably looking at the master for example and using the latest version
    please use the function "setActiveSpan"
    you should check doc by using the latest tag
    Sangit Dhanani
    @essjde_twitter
    that helped
    thank you
    Aaron Abbott
    @aabmass
    I noticed in the JS implementation, there is a ProxyTracerProvider:
    • Presumably this is to solve the issue of stale no-op tracers when a module calls getTracer() before the global provider has been set? We are facing the same issue in the Python SIG and considering adding proxy providers (and some other alternatives)
    • I noticed there is no analogous ProxyMeterProvider, any plans to add it?
    • Any plans to add these proxy providers to the spec since it is part of the core \@opentelemetry/api package?
    13 replies
    cybodelic
    @cybodelic
    Hi, i'm trying to suppress instrumenation for some incoming http requests and it looks like the suppressInstrumentation function would do exactly that. My idea is to use a requestHook function on the http plugin config to filter the urls, but how do i use suppressInstrumentation? Could not figure it out and also did not find any documentation on it.
    5 replies
    Stephen Hong
    @stephenhong
    Hello, I'm trying to test @opentelemetry/host-metrics. I want to print the host metrics data to the console in JSON format but I'm not able to print the host metrics data to console at all. May I ask for suggestions?
    3 replies
    Stephen Hong
    @stephenhong

    Thanks to @obecny, I was able to print host metrics data to the console. But now I am a little confused with the data that is presented. The following is a portion of the host metrics from the console:

    {
      name: 'system.memory.usage',
      description: 'Memory usage in bytes',
      unit: '1',
      metricKind: 4,
      valueType: 1
    }
    { state: 'free' }
    value: 66035712
    {
      name: 'system.memory.utilization',
      description: 'Memory usage 0-1',
      unit: '1',
      metricKind: 5,
      valueType: 1
    }
    { state: 'used' }
    value: 0.9961562156677246

    I understand what name, description, state, and value are, but I'm not sure what unit, metricKind, and valueType mean. Also, I'm not sure what 0-1 means from the description: 'Memory usage 0-1'. May I ask for an explanation or a link to a documentation perhaps?

    Daniel Dyla
    @dyladan
    '1' is the default unit I think
    the metrics SDK is still very alpha so I think a lot of things are not quite hooked up yet
    unit likely one of them
    Bartlomiej Obecny
    @obecny
    it is jsut a description of the value that can be from 0 to 1,where for example 0.5 simply means the memory usage was 50%
    Daniel Dyla
    @dyladan
    Maybe "percent" or "ratio" would be more obvious. "0-1" wasn't obvious to me either
    Stephen Hong
    @stephenhong
    Thank you so much!
    Gavi Hirsch
    @ghirsch1
    What's the simplest way to set up tracing in a typescript (or javascript) app to send to a collector? I've been struggling with a bunch of type errors when trying to follow the different guides in the open-telemetry/opentelemetry-js repo. I'm able to see traces in the console that seem valid, so from what I can tell the errors are due to sending to the collector, but this seems like the most basic thing I could be doing, so I'm not sure what the issue is. https://gist.github.com/ghirsch1/0ef0a6deab6d956b5b926efaeead0c52
    2 replies
    Interestingly the guides I'm finding that involve other exporters use auto-instrumentation, whereas everything I'm able to find for the collector exporter use manual instrumentation (e.g. https://github.com/open-telemetry/opentelemetry-js/blob/master/examples/collector-exporter-node/tracing.js) but my hope is that I could still use the auto-instrumentation with the collector
    Mike Powers
    @mjpowersjr
    Has anyone had luck constructing spans with manually specified start / end times? I've tried passing epoch in millis, epoch in seconds, and date objects - all result in incorrect dates being logged in otel collector.
    4 replies
    Naseem
    @naseemkullah
    Is there a way I can make meter.shutdown() invoke prometheusExporter.shutdown()? use case: distributing OTEL internally and only exposing meter (and tracer), would be nice if meter.shutdown() could take care of shutting down the prometheus server as that is what's needed for clean shutdown.
    3 replies
    taman9333
    @taman9333
    Hello everyone I had a problem when installing OTEL with istio
    I had set b3-propagator as here https://www.npmjs.com/package/@opentelemetry/propagator-b3
    and it works but I get a warning in all my spans " invalid parent span IDs "?
    image.png
    Also I don't know why there are 2 spans for bar service
    2 replies
    taman9333
    @taman9333
    @romilpunetha I think u had issue like that, could u help me please
    Sib Chettri
    @CeeBeeCee
    Hello all! Anyone here used OTel on a browser based JS app and got it to work with Internet Explorer? I wrote a tracer.js script which instantiates Opentelemetry and send traces to a Otel collector using http. The page loads perfectly on Chrome and Firefox after the Otel changes but fails to render on IE. It's a deal breaker since our users use IE primarily. Any pointers on troubleshooting would be appreciated!
    5 replies
    Sangit Dhanani
    @essjde_twitter
    Screen Shot 2021-01-19 at 10.52.45 AM.png
    Hello, im trying to combine spans from HTTP request and mysql queries but the default jaeger exporter separates them.
    Is there a way I can combine them?
    Daniel Dyla
    @dyladan
    What do you mean combine?
    Are you not seeing a parent-child relationship? or you want to see those combined into a single span?
    Sangit Dhanani
    @essjde_twitter
    im trying to have a single trace contain both my HTTP request info and the database query call info
    im not seeing a parent-child relationship in a single trace
    as the picture shows the auto instrumentation via plugins give me 2 traces instead of 1 for a single request
    Michael FIG
    @michaelfig
    Hi, I'm grafting OTel onto an application that already has its own runtime stats db, with the intention of exposing some Counters and UpDownCounters via the OTel Prometheus exporter. Is there a way I can poll this stats db upon scraping rather than duplicate all its changes in the OTel metrics?
    5 replies
    Pavan Patel
    @ppatel890

    Hi all, we are doing some custom instrumentation with websockets, and have started the span in our client application, and sent the span to the backend. Currently trying to attach the span from the front-end to some additional custom instrumentation on the backend, and having trouble setting the parent span:
    const parentSpan = extractClientSideSpan();
    const span = tracer.startSpan(spanName, { parent: parentSpan })

    Any tips on how to set the client side span as the parent of the new span on the backend would be super helpful!

    3 replies
    Weyert de Boer
    @weyert
    Hello
    I am trying to use this library to send metrics to Prometheus but I am already running an Express server, how can I let the Prometheus exporter using my existing server instance?
    3 replies
    Naseem
    @naseemkullah
    This message was deleted
    Marcelo Olivas
    @mfolivas
    currently using aws lambda and found out that AWS is supporting it. Is anyone using it? https://aws.amazon.com/blogs/opensource/aws-distro-for-opentelemetry-adds-prometheus-and-lambda-support-and-other-cool-features/
    I love the fact that they're embracing open-telemetry, but I am new to it. I just want to know how to start using it with my was lambda functions (node).
    Weyert de Boer
    @weyert
    could someone confirm to me that opentelemetry would allow to send metrics to prometheus without any extras when I define the metrics in Kubernetes?
    as in I import the library make the /metrics endpoint available and kubernetes would scrap the metrics
    i would like to count some events in my web api written in nodejs
    1 reply