Comments (7)
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.
@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:
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.
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:
- The dependency kind is not processed correctly and got addressed recently with a schema change but not updated in Ruby SDK yet.
- 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:
- rdd.dependency_kind = 0 # SQL should be set to 0
- 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.
@jngli exactly — the SQL query execution time.
Thank for all the other info, btw.
from applicationinsights-ruby.
The 'value' field is supposed to use for tracking execution time (i.e., dependency duration used in UI).
from applicationinsights-ruby.
@jngli ok perfect, thank you!
from applicationinsights-ruby.
@dkullmann the sdk is updated with latest schema where the dependency kind issue should be fixed.
from applicationinsights-ruby.
Related Issues (20)
- Release 0.5.4 HOT 5
- Need some basic logging if failed to send request to backend server HOT 1
- Only logging exceptions in Rails within App Services on Linux HOT 1
- Update yard dependency as it have known vulnarability
- Build failure HOT 1
- Open to external contributions? HOT 1
- Adding dependency tracking HOT 3
- When using `ApplicationInsights::Rack::TrackRequest`, expose a request's ID HOT 7
- Update schema to the latest version HOT 4
- Test suite sporadically fails with `test_asynchronous_queue.rb:44` HOT 1
- Add logging to the TrackRequest middleware
- Should have a size limit for message queue HOT 2
- Rails logs
- Asynchronous sender work thread terminated abnormally: Net::ReadTimeout HOT 5
- undefined method `new' for "ApplicationInsights::Rack::TrackRequest":String when starting server or sidekiq on Rails 5.2 HOT 2
- Release date for 0.5.7 HOT 1
- Output full stack trace when async sender dies
- Success always false in TelemetryClient.track_request?
- Different SERVICE_ENDPOINT_URI for Azure china HOT 1
- Unable to set role_name and role_instance HOT 1
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-ruby.