We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f88b8 commit 4ee6527Copy full SHA for 4ee6527
articles/azure-monitor/app/api-filtering-sampling.md
@@ -483,7 +483,7 @@ The following sample initializer adds a custom property to every tracked telemet
483
public void Initialize(ITelemetry item)
484
{
485
var itemProperties = item as ISupportProperties;
486
- if(itemProperties != null && !itemProperties.ContainsKey("customProp"))
+ if(itemProperties != null && !itemProperties.Properties.ContainsKey("customProp"))
487
488
itemProperties.Properties["customProp"] = "customValue";
489
}
0 commit comments