Comments (5)
The repro shared is not adding builder.Services.ConfigureOpenTelemetryTracerProvider((sp, builder) => builder.AddSource("test"));
Could you add that and try again?
from azure-sdk-for-net.
There's three ways to use the using
keyword:
-
using with a block
using (new SomeClass()) { // do some work }
-
using with a block (shorthand)
using (new SomeClass()); // do some work
-
using with a declared variable.
using var someClass = new SomeClass(); // do some work
In your code sample, you're using option 2.
So your activity is disposed after the LogInformation.
Your activity does not encompass the dependency call to bing.
from azure-sdk-for-net.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @cijothomas @rajkumar-rangaraj @reyang @TimothyMothra @vishweshbankwar.
from azure-sdk-for-net.
The repro shared is not adding
builder.Services.ConfigureOpenTelemetryTracerProvider((sp, builder) => builder.AddSource("test"));
Could you add that and try again?
You're right! Thanks!
However, when I did that, my custom activity did showed up but the activity duration seemed to be off.
I'd expect it to include the duration of the request to https://www.bing.com/
.
from azure-sdk-for-net.
Thank you so much!
I figured it out why my traces were not showing up in ApplicationInsights. It's because I had the SamplingRatio
set to 0.05. I'd recommend anyone who is testing their telemetry pipeline end-to-end to not set the SamplingRatio
.
from azure-sdk-for-net.
Related Issues (20)
- //Get the Collator for US English and set its strength to PRIMARY Collator usCollator = Collator.ec HOT 2
- SCM: Add APIs to ClientPipelineOptions to make it easier to use with freezing pattern
- Protection for dependency "VersionOverride" use in project files
- [Functions] Logging sanitization for common configuration mistake
- [Event Hubs] Explore loosening consumer contract for events
- Facebook HOT 1
- [FEATURE REQ] Support for extending app insights Dependency.Type values HOT 3
- [BUG] BlobContainerClient.ExistsAsync throws exception after upgrading 12.20.0 => 12.21.0 HOT 3
- SCM: .NET API Review Board feedback on paging APIs
- Re-enable KubectlExecuteIdentityAKSTests once we have az CLI federated login working in the pipeline HOT 1
- .Net Runtime crashes with Azure.Messaging.ServiceBus 7.17.5 HOT 5
- [QUERY] Document Permanent Delete Blob behavior using SDK HOT 3
- Support PoP token binding via Signed HTTP Request (SHR) for public client apps
- [BUG] StreamingChatCompletionUpdate.FinishReason is always null. HOT 2
- [FEATURE REQ] SignalR Scaleout with Azure Service Bus HOT 4
- System.ObjectDisposedException at Azure.Messaging.ServiceBus.ServiceBusReceiver HOT 4
- [QUERY][OpenTelemetry & Azure Monitor] Filtering Http requests HOT 1
- Azure.Search.Documents.IndexesRestClient.CreateOrUpdateAsync throws error Content: {"error":{"code":"","message":"The request is invalid. Details: definition : Error in Vectorizer 'myOpenAIVectorizer' : 'modelName' parameter is required in API version '2024-07-01'."}} HOT 1
- Is it possible to limit or control the exception message logs when service bus queue is disabled? HOT 6
- [QUERY] Logic App Standard - List Workflow Run Actions HOT 3
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 azure-sdk-for-net.