Open
Description
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
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