Giter Club home page Giter Club logo

Comments (12)

r-michal-ah avatar r-michal-ah commented on May 28, 2024 1

okay sorry for the mayhem, looks like that worked. @trask and @jeanbisutti thanks for support.

from applicationinsights-java.

trask avatar trask commented on May 28, 2024

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.

r-michal-ah avatar r-michal-ah commented on May 28, 2024

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.

r-michal-ah avatar r-michal-ah commented on May 28, 2024
[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.

jeanbisutti avatar jeanbisutti commented on May 28, 2024

@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.

r-michal-ah avatar r-michal-ah commented on May 28, 2024

hello @jeanbisutti, i still see mongo and kafka

from applicationinsights-java.

r-michal-ah avatar r-michal-ah commented on May 28, 2024

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.

trask avatar trask commented on May 28, 2024

can you find one of the mongodb dependencies being exported in the debug log?

from applicationinsights-java.

jeanbisutti avatar jeanbisutti commented on May 28, 2024

can you find one of the mongodb dependencies being exported in the debug log?

{"ver":1,"name":"RemoteDependency"

from applicationinsights-java.

r-michal-ah avatar r-michal-ah commented on May 28, 2024

of course one sec

from applicationinsights-java.

r-michal-ah avatar r-michal-ah commented on May 28, 2024
{"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.

r-michal-ah avatar r-michal-ah commented on May 28, 2024

oh this is kafka, not mongo. need a moment

from applicationinsights-java.

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.