Skip to content

OpenTelemetry auto-instrumentation support#39

Merged
m-misiura merged 1 commit into
trustyai-explainability:developfrom
m-misiura:otel-instrument
Apr 8, 2026
Merged

OpenTelemetry auto-instrumentation support#39
m-misiura merged 1 commit into
trustyai-explainability:developfrom
m-misiura:otel-instrument

Conversation

@m-misiura
Copy link
Copy Markdown
Collaborator

@m-misiura m-misiura commented Apr 7, 2026

Description

OpenTelemetry auto-instrumentation support not working due to missing packages and entrypoint not being configured -- this has been rectified accordingly to address RHOAIENG-56965

Test plan

  • built a server image: quay.io/rh-ee-mmisiura/nemo-guardrails:with_otel_v1
  • ran the following demo; assumes the cluster has RHOAI and Tempo Operator (0.20.0-2)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 7, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@3643651). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #39   +/-   ##
==========================================
  Coverage           ?   76.88%           
==========================================
  Files              ?      200           
  Lines              ?    20412           
  Branches           ?        0           
==========================================
  Hits               ?    15693           
  Misses             ?     4719           
  Partials           ?        0           
Flag Coverage Δ
python 76.88% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@m-misiura m-misiura requested a review from RobGeada April 7, 2026 14:21
Comment thread scripts/entrypoint.sh
export OTEL_SERVICE_NAME="${OTEL_SERVICE_NAME:-nemo-guardrails}"
exec opentelemetry-instrument "${CMD[@]}"
else
exec "${CMD[@]}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could we command inject this now via the $CONFIG_ID variable? Although we probably could before as well

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I would assume the risk is low, but perhaps validating CONFIG_ID so that it contains only safe characters (alphanumeric, hyphens, underscores) might be prudent? WDYT?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have added the input validation on CONFIG_ID and PORT

@m-misiura m-misiura merged commit 4c0d47f into trustyai-explainability:develop Apr 8, 2026
10 of 11 checks passed
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.

3 participants