Skip to content

[Connector/Servicegraph] use span time instead of flush time #40127

Open
@alburthoffman

Description

@alburthoffman

Component(s)

connector/servicegraph

What happened?

Description

When generating metrics, the connector uses flush time at present https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.123.0/connector/servicegraphconnector/connector.go#L496 . But normally the metrics were generated buffered spans and it would take sometime to complete the edges.

Steps to Reproduce

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.123.0/connector/servicegraphconnector/connector.go#L496

Expected Result

use span flush time

Actual Result

Collector version

v1.230

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

Log output

Additional context

No response

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