Skip to content

Conversation

@crazyuploader
Copy link
Contributor

@crazyuploader crazyuploader commented Nov 7, 2025

Closes: #2778

Doc: Link

@crazyuploader crazyuploader self-assigned this Nov 7, 2025
@crazyuploader crazyuploader added the documentation Improvements or additions to documentation label Nov 7, 2025
@vercel
Copy link

vercel bot commented Nov 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
signoz-web Ready Ready Preview Comment Nov 8, 2025 9:27am

@claude
Copy link

claude bot commented Nov 7, 2025

Claude finished @crazyuploader's task —— View job


Documentation Review Complete

I've reviewed this PR against the repository's CONTRIBUTING.md guidelines. The document provides solid technical content about setting custom attributes in OpenTelemetry, but needs some structural improvements to meet the documentation standards.

Summary of Findings

Critical Issues (Must Fix)

  1. Date format issue - The date 2025-11-04 appears to be in the future; should likely be 2024-11-04
  2. Missing required sections:
    • Prerequisites (versions, requirements, SigNoz deployment type)
    • Validate (how to confirm attributes appear in SigNoz UI)
    • Troubleshooting (common issues and fixes)
    • Next Steps (links to related features)

Important Improvements (Should Fix)

  1. Code block annotations - All 14+ code blocks lack filename annotations (e.g., yaml:otel-collector-config.yaml)
  2. Missing explanations - Configuration blocks need explanations of what each field does
  3. Cross-linking - Missing link to SigNoz's OTel Collector configuration guide
  4. Cloud vs Self-Host note - Should include an Admonition about applicability to both environments

Technical Accuracy

✅ All processor configurations verified against official OpenTelemetry sources:

  • Attributes processor actions (delete, hash) - verified
  • Resource processor actions (upsert, insert, delete, hash) - verified
  • Resource detection processor configuration - verified
  • Span attribute APIs across languages - verified
  • Metrics attribute APIs - verified
  • Log resource attributes - verified

PR Checklist Compliance

Comparing against the PR Checklist:

  • Frontmatter includes required fields
  • Added to sidebar correctly
  • Missing Prerequisites section
  • Missing Validate section
  • Missing Troubleshooting section
  • Missing Next Steps section
  • Code blocks need filename annotations
  • Missing Cloud vs Self-Host note
  • Configuration explanations needed

Recommendations

  1. Add the four missing standard sections (Prerequisites, Validate, Troubleshooting, Next Steps)
  2. Annotate all code blocks with filenames using the :filename syntax
  3. Add brief explanations after each configuration block
  4. Include Cloud vs Self-Host Admonition near the top
  5. Cross-link to SigNoz's collector configuration guide
  6. Fix the date format in frontmatter

The content is technically accurate and comprehensive - these changes will align it with the repository's documentation standards and improve usability.



## Overview

Attributes/Resource attributes provide additional contextual information about the source and type of telemetry data, such as service name, environment, hostname, etc. Attributes help in better filtering, grouping, correlation of telemetry data in SigNoz.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Prerequisites section. According to CONTRIBUTING.md, documentation should include a Prerequisites section listing versions, accounts, keys, cluster access, etc., with links.

For this guide, consider adding prerequisites such as:

  • OpenTelemetry Collector version requirements
  • SDK versions for each language
  • SigNoz deployment (Cloud or Self-Hosted)

Source: CONTRIBUTING.md lines 109-110


## Overview

Attributes/Resource attributes provide additional contextual information about the source and type of telemetry data, such as service name, environment, hostname, etc. Attributes help in better filtering, grouping, correlation of telemetry data in SigNoz.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Validate section. According to CONTRIBUTING.md, docs should include a "Validate" section showing how to confirm success (UI path, endpoint, example output).

Consider adding a section showing:

  • How to view the custom attributes in SigNoz UI
  • Where to find them in Traces/Logs/Metrics explorers
  • Screenshots of the UI showing the custom attributes

Source: CONTRIBUTING.md lines 111-112


## Overview

Attributes/Resource attributes provide additional contextual information about the source and type of telemetry data, such as service name, environment, hostname, etc. Attributes help in better filtering, grouping, correlation of telemetry data in SigNoz.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Troubleshooting section. According to CONTRIBUTING.md, docs should include a Troubleshooting section covering common issues and fixes.

Consider adding troubleshooting guidance for common issues like:

  • Attributes not appearing in SigNoz
  • Processor configuration errors
  • SDK instrumentation issues

Source: CONTRIBUTING.md lines 112-113


## Overview

Attributes/Resource attributes provide additional contextual information about the source and type of telemetry data, such as service name, environment, hostname, etc. Attributes help in better filtering, grouping, correlation of telemetry data in SigNoz.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Next Steps section. According to CONTRIBUTING.md, docs should include a short "Next steps" section linking to adjacent features or deeper guides.

Consider adding links to:

  • Query Builder documentation for filtering by custom attributes
  • Alert Management for creating alerts based on attributes
  • Dashboard creation guides

Source: CONTRIBUTING.md lines 324-325


## Overview

Attributes/Resource attributes provide additional contextual information about the source and type of telemetry data, such as service name, environment, hostname, etc. Attributes help in better filtering, grouping, correlation of telemetry data in SigNoz.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Cloud vs Self-Host guidance. According to CONTRIBUTING.md, when a guide could apply to both environments, include an Admonition noting the other environment and linking to the comparison page.

The processors shown work for both Cloud and Self-Hosted deployments. Consider adding a note about endpoint differences if applicable.

Source: CONTRIBUTING.md lines 180-201

receivers: [otlp]
processors: [attributes, batch]
exporters: [otlp]
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing explanation of configuration. According to CONTRIBUTING.md, after code/config blocks, you should explain each critical field.

Consider adding explanation after this block, such as:

  • What each action type does (delete, hash)
  • When to use attributes processor vs resource processor
  • How this applies to traces, metrics, and logs pipelines

Source: CONTRIBUTING.md lines 113-117, 143

receivers: [otlp]
processors: [resource, batch]
exporters: [otlp]
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing explanation of resource processor actions. After the code block, explain what each action does:

  • upsert: Always sets the value (insert or update)
  • insert: Only adds if key doesn't exist
  • delete: Removes the attribute
  • hash: Hashes the value (for PII)

Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourceprocessor/README.md
Source: CONTRIBUTING.md line 143

exporters: [otlp]
```

This example includes resource detection processor setup to automatically include resource attributes from the environment, host system, Docker containers, Kubernetes nodes. The complete list of supported detectors can be found [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md#supported-detectors).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to official documentation is good, but consider cross-linking to SigNoz's OTel Collector configuration guide as recommended in CONTRIBUTING.md.

Add: "For more details on collector configuration, see the OpenTelemetry Collector configuration guide."

Source: CONTRIBUTING.md lines 73, 228

}
```

For more information on how to Instrument a .NET app, check this [guide](https://signoz.io/docs/instrumentation/opentelemetry-dotnet/).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good cross-reference to related documentation. Consider using the full absolute URL format as recommended in CONTRIBUTING.md:

https://signoz.io/docs/instrumentation/opentelemetry-dotnet/

Source: CONTRIBUTING.md line 163

<TabItem value="nodejs" label="Node.js" default>

```javascript
import { Resource } from '@opentelemetry/resources'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing code block annotation with filename.

Suggested change
import { Resource } from '@opentelemetry/resources'
```javascript:instrumentation.js

Source: CONTRIBUTING.md lines 117-126

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
@claude
Copy link

claude bot commented Nov 7, 2025

Claude finished @crazyuploader's task —— View job


Review Summary

I've reviewed the latest changes to this PR. The code block filename annotations have been successfully added ✓. However, several important issues from the previous review still need to be addressed to meet the repository's documentation standards.


Remaining Issues

1. Date Format Issue (Critical)

Line 2: The date 2025-11-04 is in the future. This should be 2024-11-04.

Source: CONTRIBUTING.md line 98


2. Missing Required Sections

According to CONTRIBUTING.md, documentation must include these standard sections:

Missing Prerequisites Section
The guide should include a Prerequisites section listing:

  • OpenTelemetry Collector version requirements
  • SDK versions for each language shown
  • SigNoz deployment type (Cloud or Self-Hosted)
  • Links to getting started guides

Source: CONTRIBUTING.md lines 109-110

Missing Validate Section
Should show how to confirm the custom attributes appear in SigNoz:

  • UI path to view attributes (Traces/Logs/Metrics explorers)
  • Where to find them in the query builder
  • Example screenshots showing custom attributes

Source: CONTRIBUTING.md lines 111-112

Missing Troubleshooting Section
Should cover common issues like:

  • Attributes not appearing in SigNoz
  • Processor configuration errors
  • SDK instrumentation issues
  • Collector pipeline misconfigurations

Source: CONTRIBUTING.md lines 112-113

Missing Next Steps Section
Should link to adjacent features:

  • Query Builder documentation for filtering by custom attributes
  • Alert Management for alerts based on attributes
  • Dashboard creation guides

Source: CONTRIBUTING.md lines 324-325


3. Missing Cloud vs Self-Host Guidance

The processors shown work for both Cloud and Self-Hosted deployments. According to CONTRIBUTING.md lines 180-201, include an Admonition noting applicability to both environments:

<Admonition type="info">
  This guide applies to both SigNoz Cloud and Self-Hosted deployments. If configuration differs between environments, see [Cloud vs Self-Hosted comparison](https://signoz.io/docs/ingestion/cloud-vs-self-hosted/).
</Admonition>

4. Missing Configuration Explanations

After code/config blocks, explain critical fields (CONTRIBUTING.md lines 113-117, 143):

After attributes processor block (line 43):
Explain what each action type does:

  • delete: Removes the attribute (e.g., sensitive URLs)
  • hash: Hashes the value (e.g., for PII protection)
  • When to use attributes processor vs resource processor
  • How this applies to traces, metrics, and logs pipelines

After resource processor block (line 78):
Explain the action types:

  • upsert: Always sets the value (insert or update)
  • insert: Only adds if key doesn't exist
  • delete: Removes the attribute
  • hash: Hashes the value for PII protection

Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourceprocessor/README.md


5. Missing Cross-Link to SigNoz Collector Guide

Line 108: The document links to the official OTel docs, but should also cross-link to SigNoz's collector configuration guide:

"For more details on collector configuration in SigNoz, see the OpenTelemetry Collector configuration guide."

Source: CONTRIBUTING.md lines 73, 228


Technical Accuracy ✓

I verified the technical content against official OpenTelemetry sources:

  • ✅ Attributes processor actions (delete, hash) - verified
  • ✅ Resource processor actions (upsert, insert, delete, hash) - verified
  • ✅ Resource detection processor detectors configuration - verified
  • ✅ SDK APIs for spans, metrics, and logs across all languages - verified

All configurations and code examples are technically accurate.


PR Checklist Status

Comparing against the Docs PR Checklist:

  • Frontmatter includes required fields
  • Date format needs correction (2025 → 2024)
  • Added to sidebar correctly
  • Code blocks annotated with filenames ✓ (fixed in latest commit)
  • Missing Prerequisites section
  • Missing Validate section
  • Missing Troubleshooting section
  • Missing Next Steps section
  • Missing Cloud vs Self-Host note
  • Configuration explanations needed after code blocks
  • Missing cross-link to SigNoz collector guide

Summary

Good progress! The code block annotations were successfully added. To complete this PR, please address:

  1. Fix the date format (line 2)
  2. Add the four missing standard sections (Prerequisites, Validate, Troubleshooting, Next Steps)
  3. Add brief explanations after the three main processor configuration blocks
  4. Add Cloud vs Self-Host Admonition near the top
  5. Cross-link to SigNoz's collector configuration guide

The technical content is solid and accurate - these changes will align it with the repository's documentation standards and significantly improve usability for readers.


@claude
Copy link

claude bot commented Nov 7, 2025

Claude finished @crazyuploader's task —— View job


Review Summary

I've reviewed the latest version of this PR. Good progress has been made, but several important issues from previous reviews still need to be addressed to meet the repository's documentation standards defined in CONTRIBUTING.md.


Critical Issues

1. Date Format Error (Line 2)

The date 2025-11-04 is in the future. Based on the PR creation date, this should be 2024-11-04.

Source: CONTRIBUTING.md line 98


Missing Required Sections

According to CONTRIBUTING.md lines 107-112, documentation must include these standard sections:

Missing Prerequisites Section

The guide should include a Prerequisites section after the Overview, listing:

  • OpenTelemetry Collector version requirements (if applicable)
  • SDK versions for each language shown
  • SigNoz deployment type (Cloud or Self-Hosted)
  • Links to getting started guides

Source: CONTRIBUTING.md lines 109-110

Missing Validate Section

Should show how to confirm the custom attributes appear in SigNoz:

  • UI path to view attributes (Traces/Logs/Metrics explorers)
  • Where to find them in the query builder
  • Example showing custom attributes in the UI
  • How to verify processor changes took effect

Source: CONTRIBUTING.md lines 111-112

Missing Troubleshooting Section

Should cover common issues like:

  • Attributes not appearing in SigNoz after configuration
  • Processor configuration errors in the collector
  • SDK instrumentation issues
  • Collector pipeline misconfigurations
  • Common validation failures

Source: CONTRIBUTING.md lines 112-113, 271-273

Missing Next Steps Section

Should link to adjacent features:

  • Query Builder documentation for filtering by custom attributes
  • Alert Management for creating alerts based on attributes
  • Dashboard creation guides using custom attributes
  • Related instrumentation guides

Source: CONTRIBUTING.md lines 303, 324-325


Missing Content Guidelines

3. Missing Cloud vs Self-Host Guidance

The processors shown work for both Cloud and Self-Hosted deployments. According to CONTRIBUTING.md lines 180-201, include an Admonition noting applicability:

<Admonition type="info">
  This guide applies to both SigNoz Cloud and Self-Hosted deployments. For endpoint and authentication differences, see [Cloud vs Self-Hosted comparison](https://signoz.io/docs/ingestion/cloud-vs-self-hosted/).
</Admonition>

Source: CONTRIBUTING.md lines 180-201

4. Missing Configuration Explanations

After code/config blocks, explain critical fields (CONTRIBUTING.md lines 113-117, 143):

After attributes processor block (line 43):
Explain what each action type does:

  • delete: Removes the attribute entirely (e.g., for sensitive data like URLs)
  • hash: Hashes the attribute value using SHA-256 (e.g., for PII protection)
  • When to use attributes processor vs resource processor
  • How this applies to traces, metrics, and logs pipelines

Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/attributesprocessor/README.md

After resource processor block (line 78):
Explain the action types:

  • upsert: Always sets the value (inserts if missing, updates if exists)
  • insert: Only adds the attribute if the key doesn't already exist
  • delete: Removes the attribute entirely
  • hash: Hashes the attribute value for PII protection

Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourceprocessor/README.md

After resource detection processor block (line 106):
The current explanation is good, but could be enhanced by explaining:

  • What each detector does (env reads from environment variables, host detects hostname, system detects OS info, docker queries Docker daemon, k8snode detects Kubernetes node info)
  • When to use which detectors based on deployment environment

5. Missing Cross-Link to SigNoz Collector Guide

Line 108: The document links to the official OTel docs, which is good. However, you should also cross-link to SigNoz's collector configuration guide as recommended in CONTRIBUTING.md:

Add: "For more details on configuring the OpenTelemetry Collector in SigNoz, see the OpenTelemetry Collector configuration guide."

Source: CONTRIBUTING.md lines 73, 228


Technical Accuracy ✅

I verified the technical content against official OpenTelemetry sources:

Attributes processor - Verified delete and hash actions are correct
Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/attributesprocessor/README.md

Resource processor - Verified upsert, insert, delete, and hash actions are correct
Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourceprocessor/README.md

Resource detection processor - Verified detectors configuration with env, host, system, docker, k8snode is correct
Source: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md

SDK APIs - Verified span attribute APIs across languages:

  • JavaScript: span.setAttribute() and trace.getActiveSpan()
  • Python: span.set_attribute() and trace.get_current_span()
  • Java: Span.current().setAttribute()
  • .NET: Activity.Current.SetTag()

Source: https://opentelemetry.io/docs/

Metrics APIs - Verified metrics attribute APIs are correct across all languages

Logs/Resource attributes - Verified resource attribute configuration for logs is correct

All configurations and code examples are technically accurate.


PR Checklist Status

Comparing against the Docs PR Checklist:

  • Frontmatter includes required fields
  • Date format needs correction (2025 → 2024)
  • Added to sidebar correctly
  • Code blocks annotated with filenames ✓
  • Missing Prerequisites section
  • Missing Validate section
  • Missing Troubleshooting section
  • Missing Next Steps section
  • Missing Cloud vs Self-Host note
  • Configuration explanations needed after code blocks
  • Missing cross-link to SigNoz collector guide

Summary

The document provides solid technical content with accurate OpenTelemetry configurations and code examples. To complete this PR and meet the repository's documentation standards:

Must fix:

  1. Correct the date format from 2025-11-04 to 2024-11-04
  2. Add Prerequisites section
  3. Add Validate section showing how to verify attributes in SigNoz UI
  4. Add Troubleshooting section with common issues and solutions
  5. Add Next Steps section with links to related features

Should fix:
6. Add Cloud vs Self-Host Admonition
7. Add explanations after the three main processor configuration blocks
8. Cross-link to SigNoz's collector configuration guide

These changes will align the document with the repository's standards and significantly improve usability for readers.


@claude
Copy link

claude bot commented Nov 8, 2025

Claude encountered an error —— View job


Reviewing latest changes

Todo List:

  • Read CONTRIBUTING.md standards
  • Read current version of the documentation file
  • Check if previous review feedback has been addressed
  • Verify technical accuracy against OpenTelemetry sources
  • Post review summary

@claude
Copy link

claude bot commented Nov 8, 2025

Claude Code is working…

I'll analyze this and get back to you.

View job run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant