Skip to content

Commit f498813

Browse files
committed
Update old http semantic conventions
1 parent 8d488c4 commit f498813

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

articles/azure-monitor/app/java-standalone-telemetry-processors-examples.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,12 @@ The following sample shows how to hash existing attribute values.
329329
### Extract
330330

331331
The following sample shows how to use a regular expression (regex) to create new attributes based on the value of another attribute.
332-
For example, given `http.url = http://example.com/path?queryParam1=value1,queryParam2=value2`, the following attributes are inserted:
332+
For example, given `url.path = http://example.com/path?queryParam1=value1,queryParam2=value2`, the following attributes are inserted:
333333
* httpProtocol: `http`
334334
* httpDomain: `example.com`
335335
* httpPath: `path`
336336
* httpQueryParams: `queryParam1=value1,queryParam2=value2`
337-
* http.url: *no* change
337+
* url.path: *no* change
338338

339339
```json
340340
{
@@ -345,7 +345,7 @@ For example, given `http.url = http://example.com/path?queryParam1=value1,queryP
345345
"type": "attribute",
346346
"actions": [
347347
{
348-
"key": "http.url",
348+
"key": "url.path",
349349
"pattern": "^(?<httpProtocol>.*):\\/\\/(?<httpDomain>.*)\\/(?<httpPath>.*)(\\?|\\&)(?<httpQueryParams>.*)",
350350
"action": "extract"
351351
}
@@ -358,7 +358,7 @@ For example, given `http.url = http://example.com/path?queryParam1=value1,queryP
358358

359359
### Mask
360360

361-
For example, given `http.url = https://example.com/user/12345622` is updated to `http.url = https://example.com/user/****` using either of the below configurations.
361+
For example, given `url.path = https://example.com/user/12345622` is updated to `url.path = https://example.com/user/****` using either of the below configurations.
362362

363363

364364
First configuration example:
@@ -372,7 +372,7 @@ First configuration example:
372372
"type": "attribute",
373373
"actions": [
374374
{
375-
"key": "http.url",
375+
"key": "url.path",
376376
"pattern": "user\\/\\d+",
377377
"replace": "user\\/****",
378378
"action": "mask"
@@ -396,7 +396,7 @@ Second configuration example with regular expression group name:
396396
"type": "attribute",
397397
"actions": [
398398
{
399-
"key": "http.url",
399+
"key": "url.path",
400400
"pattern": "^(?<userGroupName>[a-zA-Z.:\/]+)\d+",
401401
"replace": "${userGroupName}**",
402402
"action": "mask"

articles/azure-monitor/app/java-standalone-telemetry-processors.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ This section lists some common span attributes that telemetry processors can use
397397

398398
| Attribute | Type | Description |
399399
|---|---|---|
400-
| `http.method` | string | HTTP request method.|
401-
| `http.url` | string | Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. The fragment isn't usually transmitted over HTTP. But if the fragment is known, it should be included.|
402-
| `http.status_code` | number | [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).|
403-
| `http.flavor` | string | Type of HTTP protocol. |
404-
| `http.user_agent` | string | Value of the [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) header sent by the client. |
400+
| `http.request.method` (used to be `http.method`) | string | HTTP request method.|
401+
| `url.full` (client span) or `url.path` (server span) (used to be `http.url`) | string | Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. The fragment isn't usually transmitted over HTTP. But if the fragment is known, it should be included.|
402+
| `http.response.status_code` (used to be `http.status_code`) | number | [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).|
403+
| `network.protocol.version` (used to be `http.flavor`) | string | Type of HTTP protocol. |
404+
| `user_agent.original` (used to be `http.user_agent`) | string | Value of the [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) header sent by the client. |
405405

406406
### JDBC spans
407407

articles/azure-monitor/app/java-standalone-upgrade-from-2x.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ The telemetry processors perform the following actions (in order):
8585
which means it applies to all telemetry that has attributes
8686
(currently `requests` and `dependencies`, but soon also `traces`).
8787

88-
It matches any telemetry that has attributes named `http.method` and `http.url`.
88+
It matches any telemetry that has attributes named `http.request.method` (used to be `http.method`) and `url.path` (used to be `http.url`).
8989

90-
Then it extracts the path portion of the `http.url` attribute into a new attribute named `tempName`.
90+
Then it extracts the path portion of the `url.path` attribute into a new attribute named `tempName`.
9191

9292
2. The second telemetry processor is a span processor (has type `span`),
9393
which means it applies to `requests` and `dependencies`.
@@ -111,13 +111,13 @@ The telemetry processors perform the following actions (in order):
111111
"include": {
112112
"matchType": "strict",
113113
"attributes": [
114-
{ "key": "http.method" },
115-
{ "key": "http.url" }
114+
{ "key": "http.request.method" },
115+
{ "key": "url.path" }
116116
]
117117
},
118118
"actions": [
119119
{
120-
"key": "http.url",
120+
"key": "url.path",
121121
"pattern": "https?://[^/]+(?<tempPath>/[^?]*)",
122122
"action": "extract"
123123
}
@@ -132,7 +132,7 @@ The telemetry processors perform the following actions (in order):
132132
]
133133
},
134134
"name": {
135-
"fromAttributes": [ "http.method", "tempPath" ],
135+
"fromAttributes": [ "http.request.method", "tempPath" ],
136136
"separator": " "
137137
}
138138
},

0 commit comments

Comments
 (0)