Skip to content

Otel configuration for default metrics#3135

Merged
havetisyan merged 6 commits intoAthenZ:masterfrom
mukesh31994:otel_integration
Dec 9, 2025
Merged

Otel configuration for default metrics#3135
havetisyan merged 6 commits intoAthenZ:masterfrom
mukesh31994:otel_integration

Conversation

@mukesh31994
Copy link
Copy Markdown
Contributor

@mukesh31994 mukesh31994 commented Nov 28, 2025

Description

Add OpenTelemetry auto-instrumentation to Athenz UI for automatic monitoring of HTTP requests, runtime metrics, and distributed tracing.

Changes:

  • New file: src/opentelemetry/instrumentation.mjs
  • Add OpenTelemetry dependencies

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots

image

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @mukesh31994, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces OpenTelemetry auto-instrumentation to the Athenz UI, significantly enhancing its observability capabilities. By integrating OpenTelemetry, the application will now automatically collect and export data for HTTP requests, runtime metrics, and distributed traces, providing a comprehensive view of its performance and behavior for improved monitoring and debugging.

Highlights

  • OpenTelemetry Integration: Integrated OpenTelemetry auto-instrumentation into the Athenz UI to enhance observability.
  • Automatic Monitoring: Enabled automatic monitoring for HTTP requests, runtime metrics, and distributed tracing.
  • New Instrumentation File: Introduced src/opentelemetry/instrumentation.mjs to configure and start the OpenTelemetry SDK.
  • Dependency Updates: Added necessary OpenTelemetry SDKs and auto-instrumentation packages to ui/package.json.
  • PM2 Configuration: Updated ui/pm2.config.js to load the OpenTelemetry instrumentation script at application startup.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces OpenTelemetry auto-instrumentation to Athenz UI, which is a great step towards better observability. The implementation is solid, but I have a few suggestions to enhance its robustness and align it with best practices. My feedback includes aligning OpenTelemetry package versions for stability, ensuring secure connections are enforced when configured, adding resource attributes for better telemetry identification, and implementing a graceful shutdown mechanism to prevent data loss.

Comment thread ui/src/opentelemetry/instrumentation.mjs
Comment thread ui/src/opentelemetry/instrumentation.mjs Outdated
Comment thread ui/package.json Outdated
Comment thread ui/src/opentelemetry/instrumentation.mjs
Comment thread ui/src/opentelemetry/instrumentation.mjs
Signed-off-by: msharma07 <mukesh.sharma@yahooinc.com>
Signed-off-by: msharma07 <mukesh.sharma@yahooinc.com>
Signed-off-by: msharma07 <mukesh.sharma@yahooinc.com>
Signed-off-by: msharma07 <mukesh.sharma@yahooinc.com>
Signed-off-by: msharma07 <mukesh.sharma@yahooinc.com>
Signed-off-by: msharma07 <mukesh.sharma@yahooinc.com>
@havetisyan havetisyan merged commit 031648b into AthenZ:master Dec 9, 2025
3 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.

4 participants