GithubHelp home page GithubHelp logo

Comments (8)

MSNev avatar MSNev commented on June 10, 2024 1

I'm not aware of the location (this repo isn't the location), but I've sent an internal request to try and find the correct path to have this logged / prioritized. However, due to holidays the necessary people are currently away. So we may have to ping this again in the new year.

from applicationinsights-js.

MSNev avatar MSNev commented on June 10, 2024 1

I have not 😞 , let me go and try to revive the thread

from applicationinsights-js.

MSNev avatar MSNev commented on June 10, 2024

Are you looking for this in the JS SDK?

As we don't enforce any itemCount (or anything really except the name) for a custom event (sent via trackEvent),

We already have support for "updating the traceid / spanid via the appInsights.getTraceCtx and you can also set the full context via the appInsights.setTraceCtx. So you could update either the entire trace/span/flags ids or the individual items

We effectively "manage" this for the entire SDK instance (so in OpenTelemetry parlance, we only have 1 parent Span (using the same traceId). With the only "real" child spans being the Ajax RemoteDependency items

Part of the request also seems to be requesting updates to the Azure Monitor UX (which this team doesn't own), please let me know if I'm reading the request correctly and if so I can send a request (this issue really) onto the UX team to add to their task list (if they don't have it listed already), as other languages (node, java, python) already directly use the versions of OpenTelemetry -- we don't for the web partially because of the size of the OT packages.

from applicationinsights-js.

johncrim avatar johncrim commented on June 10, 2024

Hi @MSNev - thank you for the reply.

You're correct, I'm looking for more than would be included in the JS SDK - I opened this here because I'm not aware of a github repo that encompasses everything, and I don't think there's a github repo for the Azure Monitor UX. I would be happy to move this to a better repo if there is such a place.

The full solution would include:

  • Expansion of the "standard" application insights telemetry types in Azure to support custom Spans. This would benefit SDKs for all programming languages. The options are either:
    • Add id, duration, and success to customEvent, or..
    • Create a new custom telemetry type with otel Span semantics - I like the name customSpan
  • Azure App Insights UX support for viewing that telemetry type in the transaction tree (aka otel Trace graph)
  • JS SDK support for tracking this telemetry type (either new fields in trackEvent(), or trackSpan({...}))

I currently do use the getTraceCtx and similar APIs in the JS SDK to make sure the telemetry items are linked appropriately. Right now I can have a customEvent that is a child of a telemetry object with Span semantics (eg pageView or dependency). However I can't make another telemetry item a child of customEvent - eg a trace or dependency should be able to be a child of a custom span. Does that make sense?

I can certainly do these things kind of just using properties (right now I stick the spanId in a customEvent property), but since it's not a standard part of the data model it's never going to be useable in standard tools - so we'd have to write our own.

We also use the app insights .NET SDK. A telemetry type that is not strongly tied to a specific interaction (like pageView, dependency, request), with otel Span semantics, would also be useful in .NET, and all other app insights SDKs.

from applicationinsights-js.

johncrim avatar johncrim commented on June 10, 2024

Hi @MSNev - lmk if you've gotten a response on this. I'm happy to report the feature request elsewhere if there's a better place for it.

from applicationinsights-js.

johncrim avatar johncrim commented on June 10, 2024

I don't know if https://github.com/microsoft/ApplicationInsights-dotnet/ is any better than this repo for proposing changes to the telemetry model; but in the absence of a better option it might be the most "core" of the SDK libraries.

from applicationinsights-js.

MSNev avatar MSNev commented on June 10, 2024

Ok, the location to post the request is Azure Monitor - Community

from applicationinsights-js.

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.