-
Notifications
You must be signed in to change notification settings - Fork 33
Add new output plugin for sending OpenTelemetry metrics over gRPC. #232
Conversation
} | ||
|
||
@Override | ||
public void sendBatch(Batch batch) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why batch is not supported ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its just not necessary right now, and the best way to map a batch to the OT metric definition isn't 100% clear so I'm kicking the can for the moment.
metricBuilder.setUnit(unit); | ||
} | ||
|
||
ExportMetricsServiceRequest request = ExportMetricsServiceRequest.newBuilder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this metric used upstream ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on the receiver. For Lightstep, the metrics are grouped on the name and then allow tag filtering/grouping under that.
modules/opentelemetry/src/main/java/com/spotify/ffwd/opentelemetry/OpenTelemetryPluginSink.java
Show resolved
Hide resolved
modules/opentelemetry/src/main/java/com/spotify/ffwd/opentelemetry/OpenTelemetryPluginSink.java
Show resolved
Hide resolved
aa169e4
to
a851818
Compare
Currently batches and distibutions are not supported. I plan to add them in later if this turns out to be useful.
Closes #228