Skip to content

Commit aa2ba24

Browse files
Merge pull request #270534 from TimothyMothra/patch-5
Update opentelemetry-add-modify.md - correct .NET user ip
2 parents 9bcd2b3 + 29046b7 commit aa2ba24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ class SpanEnrichingProcessor(SpanProcessor):
18011801

18021802
#### Set the user IP
18031803

1804-
You can populate the _client_IP_ field for requests by setting the `http.client_ip` attribute on the span. Application Insights uses the IP address to generate user location attributes and then [discards it by default](ip-collection.md#default-behavior).
1804+
You can populate the _client_IP_ field for requests by setting an attribute on the span. Application Insights uses the IP address to generate user location attributes and then [discards it by default](ip-collection.md#default-behavior).
18051805

18061806
##### [ASP.NET Core](#tab/aspnetcore)
18071807

@@ -1810,7 +1810,7 @@ Use the add [custom property example](#add-a-custom-property-to-a-span), but rep
18101810
```C#
18111811
// Add the client IP address to the activity as a tag.
18121812
// only applicable in case of activity.Kind == Server
1813-
activity.SetTag("http.client_ip", "<IP Address>");
1813+
activity.SetTag("client.address", "<IP Address>");
18141814
```
18151815

18161816
#### [.NET](#tab/net)

0 commit comments

Comments
 (0)