Giter Site home page Giter Site logo

Comments (7)

heyams avatar heyams commented on May 25, 2024

@bradooles I noticed the following:

read environment variable: APPLICATIONINSIGHTS_CONFIGURATION_FILE=**************\
2023-11-29 17:09:13.723+11:00 DEBUG c.m.a.a.i.c.ConfigurationBuilder - configuration: \{"connectionString":"InstrumentationKey=********\'94,\'94selfDiagnostics":\{"destination":"console","level":"DEBUG"\}\}\

can you make sure the connectionString in the log matches what you have in your APPLICATIONINSIGHTS_CONFIGURATION_FILE file?
Logs implied that data did flow to Application Insights. I believe it's a matter of whether you're looking at the right Application Insights resource.

from applicationinsights-java.

bradooles avatar bradooles commented on May 25, 2024

Hi @heyams,

Thanks for responding.

I've double checked and we should be looking at the correct resource. I've attached some screens (with some masking) to show that the connection string is the same in the config file as the application insights we are viewing. I've also attached some screens which show our pods are indeed connecting and sending utilisation and dependency data.

There is an additional screen which shows the Operation screen which is empty - I can see the traffic in the logs when I send in a request (as well as regular health checks) but it is not reflected here.

app_insights_portal_main
azure_agent_config_file
dependencies
instance_roles
operations

from applicationinsights-java.

trask avatar trask commented on May 25, 2024

hi @bradooles, I don't see any "Request" telemetry being sent in the debug log you attached. Is your Spring App handling HTTP requests? Does it use Servlets, Netty, or something else for handling HTTP requests? Thanks.

from applicationinsights-java.

bradooles avatar bradooles commented on May 25, 2024

Hi @trask the service is setup to use servlet for handling HTTP requests - the 'getTransaction' in the logs is the HTTP GET request for the service. The rest controller is quite basic with just a single GET and POST mappings. You think it's not detecting the request events?
In the logs I could see it find a 'getTransaction' event, so is it a case of it not counting it towards request data?

Let me know if you need any other logging, I can run with TRACE if you need

from applicationinsights-java.

trask avatar trask commented on May 25, 2024

Let me know if you need any other logging, I can run with TRACE if you need

yes this would be helpful, thx

from applicationinsights-java.

bradooles avatar bradooles commented on May 25, 2024

TRACE logs attached.
I can see in the logs:
{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"http_server_requests","value":1522.108629,"count":1,"max":1522.108629}],"properties":{"exception":"None","method":"GET","uri":"/getTransaction","outcome":"SUCCESS","status":"200"}}}}
which is the GET request.

agent_with_trace.txt

from applicationinsights-java.

trask avatar trask commented on May 25, 2024

thanks @bradooles, I'm not seeing anything unusual in the logs (except for the Request telemetry being missing). can you create a repro that we can use to troubleshoot this?

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.