Skip to content

Commit faeabe4

Browse files
authored
Merge pull request #109075 from mrbullwinkle/mrb_03_23_2020_add_custom_prop
fix error in telemetry initializer code
2 parents 9225c4a + 4ee6527 commit faeabe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-monitor/app/api-filtering-sampling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ The following sample initializer adds a custom property to every tracked telemet
483483
public void Initialize(ITelemetry item)
484484
{
485485
var itemProperties = item as ISupportProperties;
486-
if(itemProperties != null && !itemProperties.ContainsKey("customProp"))
486+
if(itemProperties != null && !itemProperties.Properties.ContainsKey("customProp"))
487487
{
488488
itemProperties.Properties["customProp"] = "customValue";
489489
}

0 commit comments

Comments
 (0)