-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1023673 Implement common encode and serialize methods using OTEL v0.12.0 #8
SNOW-1023673 Implement common encode and serialize methods using OTEL v0.12.0 #8
Conversation
src/snowflake/telemetry/_internal/opentelemetry/test/metrictestutil.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/_log_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py
Outdated
Show resolved
Hide resolved
Trying to learn what is happening in this PR. Is there description/document that explains in detail what we are trying to do? Thanks!! |
2eb262c
to
fbdd139
Compare
fbdd139
to
32366b9
Compare
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/log_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/log_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/metrics_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/trace_encoder.py
Outdated
Show resolved
Hide resolved
src/snowflake/telemetry/_internal/opentelemetry/exporter/otlp/proto/common/log_encoder.py
Outdated
Show resolved
Hide resolved
from opentelemetry.proto.logs.v1.logs_pb2 import LogsData | ||
|
||
|
||
def encode_logs(batch: Sequence[LogRecord]) -> ExportLogsServiceRequest: |
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.
Do we need this at all? Can we just call directly into serialize_logs_data
?
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.
This is a non-public method that matches the same pattern that we used in metrics_encoder and trace_encoder. Since it's not part of the API, we can modify this implementation detail once we have our own logging handler that uses native Python LogRecords (instead of the OpenTelemetry version of LogRecords).
7e92dac
to
402120b
Compare
402120b
to
ac1d433
Compare
No description provided.