Comments (8)
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.
I have not π , let me go and try to revive the thread
from applicationinsights-js.
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.
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
, andsuccess
tocustomEvent
, or.. - Create a new custom telemetry type with otel
Span
semantics - I like the namecustomSpan
- Add
- 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()
, ortrackSpan({...})
)
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.
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.
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.
Ok, the location to post the request is Azure Monitor - Community
from applicationinsights-js.
Related Issues (20)
- Question: Where does the id show up? HOT 3
- how to fix "NullInjectorError: No provider for AppInsightsSku!" HOT 2
- [BUG] Retry on sampled out telemetry is looping infinitely HOT 5
- [Question] App crash with the trace message HOT 1
- [BUG] - CRITICAL - Application runs out of memory HOT 7
- [BUG] Filtering logs with status code 308 does not work HOT 2
- Deprecated feature used when using with jQuery 3.7.1 HOT 8
- [BUG] `ITelemetryItem` uses intersection type instead of union type for `tags` property HOT 4
- [BUG] Network calls aren't visualized correctly between frontend(AI-JS) / backend(Azure Otel Distro) components in Application Map HOT 2
- [BUG] [Web-Snippet] dependency chain issues
- [BUG] Event time is not set HOT 4
- [BUG] @microsoft/applicationinsights-web-snippet version 1.1.1 type problem
- `console.log` unnecessarily noisy HOT 3
- Need to add max retry count for telemetry events to prevent events accumulation in sent buffer
- [Offline Support] offline support plugin can't be added to extensions of core config now, it can only be added through addPlugin
- [main] retry document updates HOT 1
- [BUG] remove 403 as a βretriableβ error code
- [BUG] Circular dependencies
- ApplicationInsights-JS latest version 3.1.1 giving TypeError: Cannot read properties of undefined (reading 'getCrypto') HOT 32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applicationinsights-js.