Skip to content

Commit

Permalink
Sampling relevant: MUST -> SHOULD
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Sep 24, 2021
1 parent 8c840f8 commit d34c429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ def to_creation_time_attributes(
sampling_relevant_attrs: typing.List[SemanticAttribute],
output: io.StringIO,
):
"""Renders list of attributes that MUST be provided at creation time
"""Renders list of attributes that SHOULD be provided at creation time
:return:
"""
if sampling_relevant_attrs:
output.write(
"\nFollowing attributes MUST be provided **at span creation time** (when provided at all):\n\n"
"\nFollowing attributes SHOULD be provided **at span creation time** (when provided at all), " +
"so they can be considered for sampling decisions:\n\n"""
)

for attr in sampling_relevant_attrs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| [`net.peer.name`](span-general.md) | string | . | `.` | No |
| [`net.peer.port`](span-general.md) | int | . | | No |

Following attributes MUST be provided **at span creation time** (when provided at all):
Following attributes SHOULD be provided **at span creation time** (when provided at all), so they can be considered for sampling decisions:

* `http.method`
* `http.url`
Expand Down

0 comments on commit d34c429

Please sign in to comment.