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

Improve testing #61

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

jackshirazi
Copy link
Contributor

This

  • Adds a local Elasticsearch instance
  • Starts the elastic agent as an otel collector with the traces configuration, bound to 0.0.0.0:4318
  • Adds a collector.banana endpoint pointing at localhost:4318 into the cluster to let the agents connect to the collector
  • Changes the python, nodejs and java configurations/images to generate traces from the app
  • Confirms that the traces have propagated through to Elasticsearch

So the test is now a full end-to-end trace test. The test is also setup to switch to run on both amd64 and arc64, though the arc64 option is commented for the moment

#Use latext collector config for elastic agent
curl -L -O https://raw.githubusercontent.com/elastic/elastic-agent/refs/heads/main/internal/pkg/otel/samples/linux/logs_metrics_traces.yml
#bind to ANY rather than LOOPBACK so that the pods can connect
sed -e 's/http:/http:\n endpoint: 0.0.0.0:4318/' logs_metrics_traces.yml > logs_metrics_traces2.yml
Copy link
Member

Choose a reason for hiding this comment

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

If you don't need a separate untouched file you can pass -i to sed to change the file in place

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to make a copy here, it's useful when debugging to have the original and the copy

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.

2 participants