Closed ucatbas closed 4 weeks ago
The changes involve significant updates to the go.mod
file, where multiple new indirect dependencies have been added, and several existing dependencies have been updated. Additionally, the ExporterFactory
function in both the tracerexporters
and meterexporters
packages has been enhanced to support a new Google Cloud exporter. Two new files named gcp.go
have been introduced in each package, containing the NewGCP
function, which creates a Google Cloud exporter with optional headers for credentials and project ID.
File Path | Change Summary |
---|---|
go.mod | Added multiple new indirect dependencies and updated several existing dependencies. |
pkg/telemetry/tracerexporters/factory.go | Modified ExporterFactory to include a new case for the "gcp" tracer exporter. |
pkg/telemetry/tracerexporters/gcp.go | Added new file with NewGCP function to create a Google Cloud tracer exporter. |
pkg/telemetry/meterexporters/factory.go | Modified ExporterFactory to include a new case for the "gcp" meter exporter. |
pkg/telemetry/meterexporters/gcp.go | Added new file with NewGCP function to create a Google Cloud metric exporter. |
sequenceDiagram
participant User
participant TracerExporterFactory
participant GCPTracerExporter
User->>TracerExporterFactory: Request Exporter("gcp")
TracerExporterFactory->>GCPTracerExporter: NewGCP(headers)
GCPTracerExporter-->>TracerExporterFactory: Return GCP Tracer Exporter
TracerExporterFactory-->>User: Return GCP Tracer Exporter
sequenceDiagram
participant User
participant MeterExporterFactory
participant GCPMeterExporter
User->>MeterExporterFactory: Request Exporter("gcp")
MeterExporterFactory->>GCPMeterExporter: NewGCP(headers)
GCPMeterExporter-->>MeterExporterFactory: Return GCP Meter Exporter
MeterExporterFactory-->>User: Return GCP Meter Exporter
🐰 "In the meadow, changes bloom,
New dependencies make room.
A GCP tracer joins the play,
Hopping forward, brightening the day!
With every line, our code takes flight,
A joyful leap into the light!" 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
google cloud exporter added for traces
Summary by CodeRabbit
New Features
Bug Fixes
Documentation