Comments (7)
Currently using v3.5.1
from applicationinsights-java.
@kemuri-9 sorry for the late response.
Please try this sample app filter telemetry based on request duration. I believe this will help.
from applicationinsights-java.
Looking at the referred example, it looks like the core functionality being referred to is within https://github.com/Azure-Samples/ApplicationInsights-Java-Samples/tree/main/opentelemetry-api/java-agent/extensions/FilterSpanBasedOnDuration
and this functionality is an open telemetry extension that decides whether to export (or to not export) the span based on its duration.
So the desired functionality is not purely available in the application insights json configuration, but requires a separate code module to be implemented.
Is this understanding correct?
from applicationinsights-java.
@kemuri-9 please take a closer look at the sample, it doesn't require a json configuration. sampling overrides apply at the beginning of the span. span duration is captured at the end of a span. Extensions give you more control to make decision what to export. You can filter based on any attributes or anything else that can be used uniquely identifying a span.
from applicationinsights-java.
Sorry, had a bit of a mistyping in my last comment about the intent, I've edited it to add the missing "not".
Up until now all of the configuration for app insights has been exclusively through the json configuration, there has been no writing of extensions.
The desired clarification was that for the desired behavior, an extension must be created and utilized. there is no applicable json configuration available for application insights to avoid having to maintain open telemetry extensions
from applicationinsights-java.
Looking at the referred example, it looks like the core functionality being referred to is within https://github.com/Azure-Samples/ApplicationInsights-Java-Samples/tree/main/opentelemetry-api/java-agent/extensions/FilterSpanBasedOnDuration and this functionality is an open telemetry extension that decides whether to export (or to not export) the span based on its duration. So the desired functionality is not purely available in the application insights json configuration, but requires a separate code module to be implemented. Is this understanding correct?
Yes
from applicationinsights-java.
Then there is a methodology to achieve the desired behavior, so resolved.
from applicationinsights-java.
Related Issues (20)
- SFTP dependency tree not available with applicationinsights-agent-3.5.2 HOT 5
- APPLICATIONINSIGHTS_CONNECTION_STRING does not work in 3.5.x, works in 3.4.x HOT 14
- Connection String with `ApplicationId` crashes SDK 3.4.19 HOT 1
- MsSql dependency tree not available with applicationinsights-agent-3.5.2 HOT 3
- Not all exceptions are populated with exception type and message HOT 10
- Workflow failed: OWASP dependency check (daily) (#650) HOT 37
- Current version 3.5.3 has 1 CVE: CVE-2024-35255
- Connection refused: eastasia-0.in.applicationinsights.azure.com/[0:0:0:0:0:0:0:0]:443 HOT 2
- APPLICATIONINSIGHTS_CONFIGURATION_CONTENT will not be considered in Azure Functions HOT 11
- Should there be constructor with URL argument too? HOT 2
- Sampling overrides with multiple telemetry types, with different default sampling rates HOT 8
- Multiple TelemetryClients With Different Connection Strings in Same Application HOT 3
- Codeless Agent 3.5.4 - Multiple requests are getting combined at child HTTP process instead of parent Parent HTTP flow HOT 2
- Multi line log messages with a stack trace cannot be queried HOT 2
- Gradle module metadata is not published to Maven Central, while POM file does advertise it HOT 2
- Certificate-based AD authentication HOT 4
- Failure connecting with secret behind the proxy HOT 6
- Handled / catched exceptions are getting into Azure Application Insights HOT 2
- HTTP trace collection stopped after upgrade to App Insights 3.5.4 for application based on Spring Boot 3.3.1 HOT 4
- question - how to instrument Apache Wink Client or older REST clients? HOT 7
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-java.