GithubHelp home page GithubHelp logo

Comments (6)

gupele avatar gupele commented on May 13, 2024

Hi,
Thank you for your input.
What version are you currently using?

from applicationinsights-java.

gupele avatar gupele commented on May 13, 2024

It might be that your ApplicationInsights.xml is not well formed, could you please check that? please make sure that there are no 'bad' chars at the beginning of the file

from applicationinsights-java.

symm avatar symm commented on May 13, 2024

Hi @gupele, I'm using com.microsoft.azure:applicationinsights-web:1.0.1') with the following xml:

<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings" schemaVersion="2014-05-30">
  <SDKLogger />

  <!-- The key from the portal: -->

  <InstrumentationKey>{redacted}</InstrumentationKey>


  <!-- HTTP request component (not required for bare API) -->

  <TelemetryModules>
    <Add type="com.microsoft.applicationinsights.web.extensibility.modules.WebRequestTrackingTelemetryModule"/>
    <Add type="com.microsoft.applicationinsights.web.extensibility.modules.WebSessionTrackingTelemetryModule"/>
    <Add type="com.microsoft.applicationinsights.web.extensibility.modules.WebUserTrackingTelemetryModule"/>
  </TelemetryModules>

  <!-- Events correlation (not required for bare API) -->
  <!-- These initializers add context data to each event -->

  <TelemetryInitializers>
    <Add type="com.microsoft.applicationinsights.web.extensibility.initializers.WebOperationIdTelemetryInitializer"/>
    <Add type="com.microsoft.applicationinsights.web.extensibility.initializers.WebOperationNameTelemetryInitializer"/>
    <Add type="com.microsoft.applicationinsights.web.extensibility.initializers.WebSessionTelemetryInitializer"/>
    <Add type="com.microsoft.applicationinsights.web.extensibility.initializers.WebUserTelemetryInitializer"/>
    <Add type="com.microsoft.applicationinsights.web.extensibility.initializers.WebUserAgentTelemetryInitializer"/>

  </TelemetryInitializers>
</ApplicationInsights>

from applicationinsights-java.

gupele avatar gupele commented on May 13, 2024

Thanks
The conf file seems to be fine.
I think we've found the issue, a new version 1.0.2 that includes the fix, is expected to be released in the next few days

from applicationinsights-java.

symm avatar symm commented on May 13, 2024

Nice one, thanks @gupele!

from applicationinsights-java.

watsonVon avatar watsonVon commented on May 13, 2024

Is this fixed ? right now i have the same Problem with almost the exact configuration of @symm.

I am using this Lib:

// MS Azure Application Insights logging
compile 'com.microsoft.azure:applicationinsights-logging-logback:1.0.4'

My ApplicationInsights.xml file is not found.

Failed to find configuration file, exception while fetching from library location: 'null'

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.