-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Oblt Onboarding] Adjust k8s OTel test to work in serverless nightly workflow #231462
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
[Oblt Onboarding] Adjust k8s OTel test to work in serverless nightly workflow #231462
Conversation
|
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
gbamparop
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! In Serverless the EDOT agent name is used https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-elastic-agent-utils/src/agent_names.ts#L77
|
@jackshirazi just to double check, for the OTel k8s flow in Stateful the agent name is |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
|
…workflow (elastic#231462) related to : elastic#220609 ## Summary 📚 When testing the pipeline for serverless nightly workflow, Kubernetes OTel test was failing : https://github.com/elastic/ensemble/actions/runs/16877811257/job/47821772894 This PR fixes Kubernetes OTEL e2e test failure in serverless by implementing environment-aware detection. The test was hardcoded to look for `serviceLink_opentelemetry/java/elastic` which exists in stateful environments, but serverless uses agent-based patterns like `serviceLink_java`. ## Solution ✅ - Added environment detection using serverless flag - Implemented conditional service link selection: - Serverless: serviceLink_java (agent-based pattern) - Stateful: serviceLink_opentelemetry/java/elastic (existing pattern) - Fixed transaction assertion to handle multiple transaction types using `.first()` Passed test : https://github.com/elastic/ensemble/actions/runs/16910418109/job/47910319822 --------- Co-authored-by: kibanamachine <[email protected]>
…workflow (elastic#231462) related to : elastic#220609 ## Summary 📚 When testing the pipeline for serverless nightly workflow, Kubernetes OTel test was failing : https://github.com/elastic/ensemble/actions/runs/16877811257/job/47821772894 This PR fixes Kubernetes OTEL e2e test failure in serverless by implementing environment-aware detection. The test was hardcoded to look for `serviceLink_opentelemetry/java/elastic` which exists in stateful environments, but serverless uses agent-based patterns like `serviceLink_java`. ## Solution ✅ - Added environment detection using serverless flag - Implemented conditional service link selection: - Serverless: serviceLink_java (agent-based pattern) - Stateful: serviceLink_opentelemetry/java/elastic (existing pattern) - Fixed transaction assertion to handle multiple transaction types using `.first()` Passed test : https://github.com/elastic/ensemble/actions/runs/16910418109/job/47910319822 --------- Co-authored-by: kibanamachine <[email protected]>
related to : #220609
Summary 📚
When testing the pipeline for serverless nightly workflow, Kubernetes OTel test was failing :
https://github.com/elastic/ensemble/actions/runs/16877811257/job/47821772894
This PR fixes Kubernetes OTEL e2e test failure in serverless by implementing environment-aware detection.
The test was hardcoded to look for
serviceLink_opentelemetry/java/elasticwhich exists in stateful environments, but serverless uses agent-based patterns likeserviceLink_java.Solution ✅
Added environment detection using serverless flag
Implemented conditional service link selection:
Fixed transaction assertion to handle multiple transaction types using
.first()Passed test : https://github.com/elastic/ensemble/actions/runs/16910418109/job/47910319822