Comments (5)
Hey @heyams, thanks for your quick response.
I'm using the version 3.4.18.
With the HTTP dependency, I was able to use sampling overrides to ignore some requests.
I will set the self-diagnostics level to debug as suggested to get the attributes.
from applicationinsights-java.
@heyams, it works!
Thank you!
from applicationinsights-java.
{
"preview": {
"captureControllerSpans": false
}
}
since version 3.2.0, we don't collect controller "InProc" dependencies by default. Which version of Java agent are you using?
If those are not controller InProc dependencies, you can certainly use sampling overrides like this:
{
"connectionString": "...",
"preview": {
"sampling": {
"overrides": [
{
"telemetryType": "dependency",
"attributes": [
{
"key": "<attributre_key>", // replace it with an actual attribute key
"value": "<attribute_value>", // repleace it with an actual attribute value
"matchType": "strict" //or "regexp"
}
]
"percentage": 0
}
]
}
}
}
@gleidson please let me know if you have further questions.
from applicationinsights-java.
Hey @heyams, I tried the configuration below
{
"telemetryType": "dependency",
"attributes": [
{
"key": "thread.name",
"value": "boundedElastic*",
"matchType": "regexp"
}
],
"percentage": 0
}
For the "exporting span" below:
2024-01-19 17:49:02.883-03:00 DEBUG c.m.a.a.i.exporter.AgentSpanExporter - exporting span: SpanData{spanContext=ImmutableSpanContext{traceId=4def5e93043cea4c5fa41f757a081c7f, spanId=9bc7fea1441e1d9e, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, resource=Resource{schemaUrl=https://opentelemetry.io/schemas/1.21.0, attributes={service.name="my-service", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.31.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=azure-storage-blob, version=12.24.1, schemaUrl=https://opentelemetry.io/schemas/1.17.0, attributes={}}, name=AzureBlobStorageBlob.setMetadata, kind=INTERNAL, startEpochNanos=1705697342693931300, endEpochNanos=1705697342843649200, attributes=AttributesMap{data={applicationinsights.internal.item_count=1, thread.name=boundedElastic-6, thread.id=193, az.namespace=Microsoft.Storage}, capacity=128, totalAddedValues=4}, totalAttributeCount=4, events=[], totalRecordedEvents=0, links=[], totalRecordedLinks=0, status=ImmutableStatusData{statusCode=UNSET, description=}, hasEnded=true}
But it didn't work as expected. Can you help me with an example to ignore the span above?
from applicationinsights-java.
please try this instead:
{
"telemetryType": "dependency",
"attributes": [
{
"key": "thread.name",
"value": "boundedElastic.*", // use '.*'
"matchType": "regexp"
}
],
"percentage": 0
}
from applicationinsights-java.
Related Issues (20)
- Azure Security reports CVE-2018-1000011 HOT 4
- General Availability target for sampling overrides HOT 5
- in the latest JAR 3.4.18, there are two HIGH Vulnerabilities CVE-2023-6378 with ch.qos.logback:logback-classic and ch.qos.logback:logback-core HOT 2
- Classic SDK TelemetryClient not capturing any data HOT 4
- Add ability to disable reactor instrumentation HOT 3
- Allow connectionString to be overridden multiple times without restarting the AppInsights Agent HOT 5
- 3.4.19 + Ktor OpenTelemetry - ClassCastException HOT 5
- Possibly incorrect mapping of Trace ID and Span ID HOT 8
- Unable to suppress dependencies using java agent HOT 12
- Java log4j2: Log messages go missing sporadically, especially in multi-threaded scenarios HOT 1
- how to turn off customMetrics, performanceCounters and metrics HOT 8
- TimeoutException when ingesting logs into AI HOT 13
- Problem to configure sampling override HOT 6
- Auto-instrumentation support for Pekko 1.0.0 in Java agent HOT 2
- Q: regarding agent not being able to attach. HOT 5
- TRACE log level causes an application to fail HOT 11
- [Question] Why relocate logback packages and configuration files HOT 2
- How to add a Prefix to the names of the default captured metrics HOT 4
- Azure function app integration to Dynatrace in Linux with Open telemetry HOT 2
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.