Skip to content
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

feat(cli): add open telemetry support for Tracetest agent #3662

Merged
merged 6 commits into from Feb 20, 2024

Conversation

danielbdias
Copy link
Contributor

@danielbdias danielbdias commented Feb 19, 2024

This PR adds support for OTel Collector on Tracetest Agent.

Changes

  • Added capability of setting verbose mode via env vars
  • Added option to inform the address of an OTel Collector to send observability telemetry

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Copy link

vercel bot commented Feb 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2024 4:52pm

@@ -162,6 +162,19 @@ func (e invalidServerErr) Render() {
}

func (c Configurator) populateConfigWithVersionInfo(ctx context.Context, cfg Config) (_ Config, _ error, isOSS bool) {
cliVersion := Version
if cliVersion == "dev" {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Helper code to help us to run the agent locally when the cliVersion is dev

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we point the agent to a different environment from a dev build too? I want to make sure this will allows us to be flexible enough when debugging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! Added an update to allow these config to be configured by env vars.

@danielbdias danielbdias merged commit 471fc43 into main Feb 20, 2024
39 checks passed
@danielbdias danielbdias deleted the add/otel-to-agent branch February 20, 2024 18:37
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.

None yet

3 participants