Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][connector/datadogconnector] Fix connector traceToMetrics life…
…cycle (open-telemetry#31811) **Description:** Currently, calling `Shutdown` on the `traceToMetricConnector` requires on `Start` being called before, as the `Shutdown` relies on goroutines which are spawned during `Start`. This causes the connector to hang if a call to `Shutdown` is made without a call to `Start`. This PR adds a `isStarted` field to the `traceToMetricConnector` struct, which tracks whether `Start` was called. If it was not, it makes the call to `Shutdown` a no-op. **Link to tracking Issue:** open-telemetry#30487 **Testing:** <Describe what testing was performed and which tests were added.> **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Antoine Toulme <[email protected]>
- Loading branch information