Skip to content

Conversation

@tanner-bruce
Copy link

@plantfansam

Resolves #70

@plantfansam
Copy link
Contributor

I think we want string.len here? body should be a string (here's where the body arg ultimately comes from:

return call_collector(self, pb.encode(body))
).

> print(string.len("foóó"))
6

image

@tanner-bruce tanner-bruce force-pushed the otlpexport/add-message-uncompressed-size branch from b1762cc to a3d4302 Compare March 30, 2023 17:21
@tanner-bruce tanner-bruce force-pushed the otlpexport/add-message-uncompressed-size branch from a3d4302 to 1167d7b Compare May 30, 2023 18:36
@tanner-bruce tanner-bruce marked this pull request as ready for review May 30, 2023 18:36
@@ -1,5 +1,7 @@
local http = require("resty.http")

local exporter_message_size_uncompressed_metric = "otel.otlp_exporter.message_uncompressed_size"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep naming consistency: exporter_message_size_uncompressed_metric -> exporter_ message_uncompressed_size_metric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add uncompressed message size stat to exporter

3 participants