Skip to content

Commit

Permalink
revert 0.27 internal-log
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Nov 14, 2024
1 parent 8eff7f1 commit 0e1a641
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions opentelemetry-user-events-metrics/src/exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use opentelemetry_sdk::metrics::{
InstrumentKind,
};

use opentelemetry::global::otel_debug;

use crate::tracepoint;
use eventheader::_internal as ehi;
use prost::Message;
Expand Down Expand Up @@ -68,8 +66,6 @@ impl Debug for MetricsExporter {

impl MetricsExporter {
async fn serialize_and_write(&self, resource_metric: &ResourceMetrics) -> Result<()> {
otel_debug!(name: "MetricsExporter.Serialize", size = resource_metric.scope_metrics.len());

// Allocate a local buffer for each write operation
// TODO: Investigate if this can be optimized to avoid reallocation or
// allocate a fixed buffer size for all writes
Expand All @@ -88,7 +84,6 @@ impl MetricsExporter {
let error = Err(MetricsError::Other(
"Event size exceeds maximum allowed limit".into(),
));
otel_warn!(name: "MetricsExporter.EventFailed", error = format!("{:?}", error), size = byte_array.len());
return Err(MetricsError::Other(
"Event size exceeds maximum allowed limit".into(),
));
Expand Down

0 comments on commit 0e1a641

Please sign in to comment.