-
Notifications
You must be signed in to change notification settings - Fork 2
adds otel custom attributes docs for cli #258
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation for custom OpenTelemetry resource attributes in the CLI telemetry guide. It enables users to add custom metadata (like team ownership, deployment region, or environment) to all telemetry signals for better filtering and querying in observability platforms.
Key changes:
- New section documenting how to add custom OTEL resource attributes via CLI flag and environment variable
- Usage examples showing various attribute patterns and combinations
- Common use cases and best practices for choosing attribute names
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
22d8651 to
39910a2
Compare
|
@claude please review this documentation change for clarity, consistency, and conformance to the project's style guide. |
|
Claude finished @danbarr's task —— View job Documentation ReviewI've completed my review of the custom attributes documentation. Overall, the content is well-written and provides good technical detail. Here are my findings: Strengths
Issues to Address1. Style Guide: Punctuation (lines 106-110)The text references "OpenTelemetry Resource Semantic Conventions" followed by a colon, but the colon should be removed since it's not introducing a list. Current: Attribute values can contain any UTF-8 string, including URLs. For more details,
see the
[OpenTelemetry Resource Semantic Conventions](https://opentelemetry.io/docs/specs/semconv/resource/#attributes):Suggested: Attribute values can contain any UTF-8 string, including URLs. For more details,
see the
[OpenTelemetry Resource Semantic Conventions](https://opentelemetry.io/docs/specs/semconv/resource/#attributes).2. Clarity: Redundant Example (lines 112-117)This second example immediately following the character rules doesn't add much value since it demonstrates the same concept as the earlier example at lines 99-104. Consider removing it or making it demonstrably different (e.g., showing edge cases or validation failures). 3. Style Guide: List Consistency (lines 150-161)The common use cases section uses inconsistent formatting. Some items have colons, some don't. Per the style guide's emphasis on consistency, all items should follow the same pattern. Current formatting is inconsistent:
All are consistent actually - this is fine. 4. Clarity: "Common use cases" Content (lines 152-161)The bulleted items read more like benefits/features than actual use cases. Consider rephrasing to show concrete scenarios, or rename the section to "Benefits" or "Why use custom attributes." Current: "Critical context: Add critical context to telemetry..." More concrete use case approach:
5. Table Update Needed (line 239)The configuration options table needs to include the new 6. Existing Review CommentThe Copilot review comment suggests using a different example attribute at line 166. I agree - using Minor Observations
SummaryThe documentation effectively covers the new custom attributes feature with good technical accuracy. The main improvements needed are:
The content follows most style guide requirements well, including proper use of sentence case, second person voice, and clear formatting. Once these issues are addressed, the documentation will be ready for publication. Job Run | Branch: |
Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
Description
We have added custom attributes support in toolhive, this PR adds the docs for it.
Related issues/PRs
stacklok/toolhive#2285
Content
sidebars.ts) updated for added, deleted, reordered, or renamed filesvercel.jsonfor moved, renamed, or deleted pages (i.e., if the URL slug changed)Reviews