Code Monkey home page Code Monkey logo

Comments (7)

jngli avatar jngli commented on May 22, 2024

There are multiple telemetry types as defined in the contract classes, all of them support properties which are custom defined, that is, you define the property and responsible for tracking its value.

from applicationinsights-ruby.

dkullmann avatar dkullmann commented on May 22, 2024

@jngli thank you, we'll try sending SQL data using this and setting it to 3

Our goal is to make sure the SQL metrics show up here:
image

We also weren't sure if SQL metrics could include SQL-specific things like Time + Query (we can include them as custom properties.)

from applicationinsights-ruby.

jngli avatar jngli commented on May 22, 2024

The rdd (RemoteDependencyData) is not officially supported by Ruby SDK yet, not exposed directly via TelemetryClient. You could manually create an rdd and send to AI using the telemetry channel, what you've done I think. However there are two issues while processing rdd:

  1. The dependency kind is not processed correctly and got addressed recently with a schema change but not updated in Ruby SDK yet.
  2. The rdd would be ignored if ai.device.id is not specified which would be fixed in the server side in the near future.

You can work around the above issues with following changes:

  1. rdd.dependency_kind = 0 # SQL should be set to 0
  2. tc.context.device.id = "1" # explicitly set device id

What do you mean by 'Time', the time stamp making the sql query, execution time, or something else? For query, yes, you can use the custom property to track it.

Thanks,
Jing

from applicationinsights-ruby.

dkullmann avatar dkullmann commented on May 22, 2024

@jngli exactly — the SQL query execution time.

Thank for all the other info, btw.

from applicationinsights-ruby.

jngli avatar jngli commented on May 22, 2024

The 'value' field is supposed to use for tracking execution time (i.e., dependency duration used in UI).

from applicationinsights-ruby.

dkullmann avatar dkullmann commented on May 22, 2024

@jngli ok perfect, thank you!

from applicationinsights-ruby.

jngli avatar jngli commented on May 22, 2024

@dkullmann the sdk is updated with latest schema where the dependency kind issue should be fixed.

from applicationinsights-ruby.

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.