Comments (12)
okay sorry for the mayhem, looks like that worked. @trask and @jeanbisutti thanks for support.
from applicationinsights-java.
hi @r-michal-ah! this configuration looks correct to me. what version of Application Insights Java are you using? and can you attach your applicationinsights.log (scrubbing any sensitive data)?
from applicationinsights-java.
hello @trask, regarding version, I am using:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-runtime-attach</artifactId>
<version>3.4.19</version>
</dependency>
as for the logs, for that i need a moment.
from applicationinsights-java.
[INFO] Run: java -Dserver.port=8080 -XX:MinRAMPercentage=75.0 -XX:MaxRAMPercentage=95.0 -jar /opt/service.jar
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
2024-01-05 17:40:08.419+01:00 DEBUG c.m.a.a.i.c.ConfigurationBuilder - read system property: applicationinsights.internal.runtime.attached.json={ "role": { "name": "service-name" }, "sampling": { "percentage": 100 }, "preview": { "sampling": { "overrides": [ { "telemetryType": "dependency", "percentage": 0 } ] } }, "selfDiagnostics": { "destination": "console", "level": "DEBUG" }}
2024-01-05 17:40:08.421+01:00 DEBUG c.m.a.a.i.c.ConfigurationBuilder - configuration: {"role":{"name":"service-name"},"sampling":{"percentage":100},"preview":{"sampling":{"overrides":[{"telemetryType":"dependency","percentage":0}]}},"selfDiagnostics":{"destination":"console","level":"DEBUG"}}
2024-01-05 17:40:08.432+01:00 DEBUG c.m.a.a.i.c.ConfigurationBuilder - read environment variable: APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=XXX
2024-01-05 17:40:08.442+01:00 DEBUG c.m.applicationinsights.agent - Input arguments: [-XX:MinRAMPercentage=75.0, -XX:MaxRAMPercentage=95.0]
2024-01-05 17:40:08.442+01:00 DEBUG c.m.applicationinsights.agent - _JAVA_OPTIONS: null
2024-01-05 17:40:08.443+01:00 DEBUG c.m.applicationinsights.agent - JAVA_TOOL_OPTIONS: null
2024-01-05 17:40:09.016+01:00 DEBUG c.m.applicationinsights.agent - connection string is not null, start HeartbeatExporter
2024-01-05 17:40:13.219+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(AnnotationInstrumentationModule#WithSpanInstrumentation((not(name(startsWith(kotlin.coroutines.))) and declaresMethods(whereOne((declaresAnnotations(whereOne(ofAnnotationType(name(equals(io.opentelemetry.instrumentation.annotations.WithSpan))))) and returns(erasure(is(class java.lang.Object))) and io.opentelemetry.javaagent.instrumentation.instrumentationannotations.KotlinCoroutineUtil$$Lambda$317/0x000000084028b440@27f7f9ea and not(false))))))) or false)
2024-01-05 17:40:13.220+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(AnnotationInstrumentationModule#WithSpanInstrumentation(declaresMethods(whereOne(declaresAnnotations(whereOne(ofAnnotationType(name(equals(io.opentelemetry.instrumentation.annotations.WithSpan))))))))) or false)
2024-01-05 17:40:13.220+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(AnnotationInstrumentationModule#AddingSpanAttributesInstrumentation(declaresMethods(whereOne((declaresAnnotations(whereOne(ofAnnotationType(name(equals(io.opentelemetry.instrumentation.annotations.AddingSpanAttributes))))) and not(declaresAnnotations(whereOne(ofAnnotationType(name(equals(io.opentelemetry.instrumentation.annotations.WithSpan))))))))))) or false)
2024-01-05 17:40:13.221+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(WithSpanInstrumentationModule#WithSpanInstrumentation(declaresMethods(whereOne(declaresAnnotations(whereOne(ofAnnotationType(name(equals(io.opentelemetry.extension.annotations.WithSpan))))))))) or false)
2024-01-05 17:40:13.221+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(JaxrsInstrumentationModule#JaxrsAnnotationsInstrumentation(safeHasSuperType(safeErasure((declaresAnnotations(whereOne(ofAnnotationType(name(equals(javax.ws.rs.Path))))) or declaresMethods(whereOne(declaresAnnotations(whereOne(ofAnnotationType(name(equals(javax.ws.rs.Path)))))))))))) or false)
2024-01-05 17:40:13.221+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(JaxrsAnnotationsInstrumentationModule#JaxrsAnnotationsInstrumentation(safeHasSuperType(safeErasure((declaresAnnotations(whereOne(ofAnnotationType(name(equals(javax.ws.rs.Path))))) or declaresMethods(whereOne(declaresAnnotations(whereOne(ofAnnotationType(name(equals(javax.ws.rs.Path)))))))))))) or false)
2024-01-05 17:40:13.221+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(JaxrsAnnotationsInstrumentationModule#JaxrsAnnotationsInstrumentation(safeHasSuperType(safeErasure((declaresAnnotations(whereOne(ofAnnotationType(name(equals(jakarta.ws.rs.Path))))) or declaresMethods(whereOne(declaresAnnotations(whereOne(ofAnnotationType(name(equals(jakarta.ws.rs.Path)))))))))))) or false)
2024-01-05 17:40:13.222+01:00 DEBUG n.b.agent.builder.AgentBuilderUtil - Could not decompose matcher failSafe(try(JwsInstrumentationModule#JwsAnnotationsInstrumentation((safeHasSuperType(safeErasure(declaresAnnotations(whereOne(ofAnnotationType(name(equals(javax.jws.WebService))))))) or declaresAnnotations(whereOne(ofAnnotationType(name(equals(javax.jws.WebService)))))))) or false)
2024-01-05 17:40:17.419+01:00 INFO c.m.applicationinsights.agent - Application Insights Java Agent 3.4.19 started successfully (PID 1, JVM running for 13.922 s)
2024-01-05 17:40:17.421+01:00 INFO c.m.applicationinsights.agent - Java version: 11.0.16, vendor: Oracle Corporation, home: /usr/local/openjdk-11
this is very beginning of log, for the rest i would need a lot of time to remove sensitive data. is that helpful?
from applicationinsights-java.
@r-michal-ah I have tested from your JSON file and a Petclinic application. It has removed the SQL dependencies. What dependencies do you continue to see with this configuration?
from applicationinsights-java.
hello @jeanbisutti, i still see mongo and kafka
from applicationinsights-java.
for kafka we are using
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.projectreactor.kafka</groupId>
<artifactId>reactor-kafka</artifactId>
</dependency>
and for mongo
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
</dependency>
from applicationinsights-java.
can you find one of the mongodb dependencies being exported in the debug log?
from applicationinsights-java.
can you find one of the mongodb dependencies being exported in the debug log?
{"ver":1,"name":"RemoteDependency"
from applicationinsights-java.
of course one sec
from applicationinsights-java.
{"ver":1,"name":"RemoteDependency","time":"2024-01-05T17:08:52.07Z","iKey":"","tags":{"ai.internal.sdkVersion":"ra_java:3.4.19","ai.operation.id":"c75a735d86357463d66f1c9dc51ee38b","ai.cloud.roleInstance":"","ai.operation.name":"POST /send","ai.cloud.role":"service-name","ai.operation.parentId":"40f812144d8fb602"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"id":"7b369023bc45bd1f","name":"topic.name publish","type":"Queue Message | kafka","target":"topic.name","duration":"00:00:00.342966","success":true}}}
from applicationinsights-java.
oh this is kafka, not mongo. need a moment
from applicationinsights-java.
Related Issues (20)
- CVE-2023-6378 HOT 10
- Agent not reporting HTTP operations from spring app HOT 7
- 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
- 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
- Help to ignore InProc sampling dependencies HOT 5
- 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
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.