-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure: Add Storage Table spy #999
Conversation
❕ Build Aborted
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪Test errorsExpand to view the tests failures> Show only the first 10 test failures
|
We use a built-in library called Diagnostic Source to get info for Azure storage. For each operation we get a start and an end event - here is the code for it.
What we do here is that we just use the operation name from the name of the event that we get - So if the diagnostic source event is called
I think we don't collect region info, but what we do is that we indeed pars the URL and get things like @russcam knows more about this. |
Oh, and just to be on the same page :) Azure Storage and CosmosDb are different things - what I linked above is about Azure Storage. |
Another update :) actually the diagnostic source way I describe above works only for newer libraries. @russcam works on a PR to parse out everything purely from the URLs which will work with older versions as well - I think this will be closer to what you can do in Ruby. Here you can see the URL parsing logic. |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some minor comments but otherwise it looks good to me.
@@ -68,4 +68,4 @@ Feature: Extracting Metadata for Azure App Service | |||
| WEBSITE_RESOURCE_GROUP | resource_group | | |||
| WEBSITE_SITE_NAME | site_name | | |||
When cloud metadata is collected | |||
Then cloud metadata is null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should open an issue to write the step definitions for this.
looks good! |
@estolfo Added instrumentation to a bunch more methods 😊 |
This is ready for a new look-through @estolfo 😊 |
Closes #948
Closes #947 (Storage Table and CosmosDB use the same lib in Ruby)
Closes #1022
ALSO:
This PR…
span.context.destination.service
fields per this change (only settingservice.resource
)BasicObject
for making it easier to create "dumb" objects that mostly hold values