Skip to content

Make the extra field inserted by virtualfield a transient field #13455

@123liuziming

Description

@123liuziming

Is your feature request related to a problem? Please describe.

Yes, sometimes users may serialize some Java bean, which may be instrumented by OpenTelemetry Java Agent. Java Agent may insert an extra field through VirtualField, and it will led to a serialization failure.

Image

Describe the solution you'd like

Make the extra field inserted by virtualfield a transient field and Java will ignore such transient field while doing serialization

Describe alternatives you've considered

No

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions