Add Spring Boot Smoke Test

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, spring-boot
Domain
testing

Research direction

Start by reviewing the OpenTelemetry Java Instrumentation Spring Boot smoke tests linked in the issue, then inspect this repository for its existing smoke-test structure and agent entry points. Add a Spring Boot smoke test that exercises the agent in Spring Boot's executable-jar and custom-ClassLoader setup; done means the smoke test runs successfully and covers dependency discovery such as Trace ID injection.

Written by the indexing model from the issue text.

Description

enhancement

Spring Boot packages its apps in a unique way, and loads dependencies using a custom ClassLoader that makes them invisble to the System Class Loader which the agent uses at premain to discover useful dependencies like Trace ID injection libraries. More generally, we've had issues specific to spring boot in the past and should have a way to smoke test Spring Boot apps.

See OTel Java Instrumentation Spring Boot smoke tests for reference: https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/67371ecfc9fc9b4cf7985ae96ffc5bde9a246b11/smoke-tests/springboot

Dominant language
Java
Stars
46
Forks
20
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-xray-java-agent

All issues in aws/aws-xray-java-agent

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.