Skip to content

[exporter/awsxrayexporter] Consumer Segments should set the name to be local service name if possible #43432

@joshua-tianci

Description

@joshua-tianci

Component(s)

exporter/awsxray

What happened?

Description

After the changes in #42633, Consumer spans can also now be a Segments rather than just Subsegment. As such I would expect the behaviour for naming to be the same as other local roots (server for example).

Steps to Reproduce

AWS account
otel/opentelemetry-collector-contrib:0.137.0 running

send opentelemetry trace that starts with span with span kind = Consumer

Expected Result

Segment name comes from service name, like it does when the span kind is server
e.g.

Image

Actual Result

Segment name comes from operation name

Image

Collector version

otel/opentelemetry-collector-contrib:0.137.0

Environment information

No response

OpenTelemetry Collector configuration

exporters:
  awsxray/sandbox:
    local_mode: true
    index_all_attributes: true
    region: eu-west-1

## no processors, just standard recievers

Log output

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions