Skip to content

chore: expose namespace in otel attributes#2501

Closed
NathanFlurry wants to merge 1 commit into04-26-chore_add_standalone_toolchain_build_scriptsfrom
05-30-chore_expose_namespace_in_otel_attributes
Closed

chore: expose namespace in otel attributes#2501
NathanFlurry wants to merge 1 commit into04-26-chore_add_standalone_toolchain_build_scriptsfrom
05-30-chore_expose_namespace_in_otel_attributes

Conversation

@NathanFlurry
Copy link
Copy Markdown
Member

Changes

Copy link
Copy Markdown
Member Author

NathanFlurry commented May 30, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Adds namespace information to OpenTelemetry attributes across multiple components for better service observability and monitoring.

  • Added RIVET_NAMESPACE to OpenTelemetry resource attributes in /packages/common/runtime/src/otel.rs
  • Implemented namespace tagging in Vector configuration for metrics and logs across all pool types in /packages/core/services/cluster/src/workflows/server/install/install_scripts/components/vector.rs
  • Added RIVET_NAMESPACE environment variable to both worker and guard systemd service configurations
  • Modified gen_initialize function to pass namespace information to Vector configuration consistently

7 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile

r#"
.source = "pegboard_manager"

.namespace = "{namespace}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

style: Namespace field added at root level for pegboard logs, while metrics use .tags.namespace. Consider using consistent structure

Environment="RIVET_OTEL_ENABLED=1"
Environment="RIVET_OTEL_SAMPLER_RATIO=1"
Environment="RIVET_SERVICE_NAME=edge"
Environment="RIVET_NAMESPACE=__NAMESPACE__"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

style: Ensure NAMESPACE is properly replaced during configuration. The template variable format differs from other environment variables which use ___ prefix/suffix.

Environment="RIVET_OTEL_ENABLED=1"
Environment="RIVET_OTEL_SAMPLER_RATIO=1"
Environment="RIVET_SERVICE_NAME=guard"
Environment="RIVET_NAMESPACE=__NAMESPACE__"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

style: Template variable uses different underscore pattern than other environment variables (NAMESPACE vs CLUSTER_ID). Should be consistent with 3 underscores.

Suggested change
Environment="RIVET_NAMESPACE=__NAMESPACE__"
Environment="RIVET_NAMESPACE=___NAMESPACE___"

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 30, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7b38fd6
Status: ✅  Deploy successful!
Preview URL: https://a113fc2d.rivet.pages.dev
Branch Preview URL: https://05-30-chore-expose-namespace.rivet.pages.dev

View logs

@NathanFlurry NathanFlurry changed the base branch from 05-30-chore_pegboard_update_oci_config_for_stricter_security to graphite-base/2501 May 31, 2025 00:38
@NathanFlurry NathanFlurry force-pushed the 05-30-chore_expose_namespace_in_otel_attributes branch from 049ebae to 8f8d1e6 Compare May 31, 2025 00:39
@NathanFlurry NathanFlurry changed the base branch from graphite-base/2501 to 04-26-chore_add_standalone_toolchain_build_scripts May 31, 2025 00:39
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 31, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7b38fd6
Status: ✅  Deploy successful!
Preview URL: https://28f602af.rivet-hub-7jb.pages.dev
Branch Preview URL: https://05-30-chore-expose-namespace.rivet-hub-7jb.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 31, 2025

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7b38fd6
Status: ✅  Deploy successful!
Preview URL: https://20102259.rivet-studio.pages.dev
Branch Preview URL: https://05-30-chore-expose-namespace.rivet-studio.pages.dev

View logs

@graphite-app graphite-app Bot closed this Jun 3, 2025
@graphite-app graphite-app Bot deleted the 05-30-chore_expose_namespace_in_otel_attributes branch June 3, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant