Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampling relevant: minor improvements #70

Merged
merged 4 commits into from
Oct 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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