Skip to content

RTDEV-91167 - Add traces field to build info#860

Open
neshkoli wants to merge 1 commit into
jfrog:masterfrom
neshkoli:feature/add-traces-to-buildinfo
Open

RTDEV-91167 - Add traces field to build info#860
neshkoli wants to merge 1 commit into
jfrog:masterfrom
neshkoli:feature/add-traces-to-buildinfo

Conversation

@neshkoli

Copy link
Copy Markdown

Summary

  • Add Trace.java — OTel-style span model with trace_id, span_id, parent_span_id, name, start_time, end_time, attributes, span_kind (all snake_case JSON via @JsonProperty)
  • Add List<Trace> traces field to Build with getter/setter
  • Wire traces through BuildInfoBuilder (api) builder method
  • Wire traces through BuildInfo and BuildInfoBuilder (extractor) with ToBuild()/ToBuildInfo() round-trip
  • Add TraceTest — 4 unit tests covering getters/setters, JSON round-trip (snake_case keys), and full Build serialization with traces

Motivation

Allows CI tools (e.g. Boost CI) to attach OpenTelemetry-style span arrays to build info, enabling trace data to be stored and retrieved alongside build artifacts via PUT/GET /artifactory/api/build.

Test plan

  • Unit tests pass: TraceTest — 4/4
  • End-to-end verified locally: PUT buildinfo JSON with 14 OTel spans → GET returns traces array unchanged

Jira: RTDEV-91167

Add Trace.java model (OTel-style span) and List<Trace> traces field to
Build, BuildInfoBuilder (api + extractor), and BuildInfo. Traces are
serialized with snake_case JSON keys (trace_id, span_id, etc.) and
round-trip through the Artifactory build info API unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@neshkoli

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

1 participant