Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivcodes committed Jan 22, 2025
1 parent e94c1fe commit c9a6509
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions apps/observe/nginx/nginx.conf.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
events {}

http {
client_max_body_size 20M;

map $http_authorization $auth_valid {
default 0;
"Bearer ${TOKEN}" 1;
Expand Down
4 changes: 1 addition & 3 deletions apps/observe/otel-collector/otel-collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ receivers:
protocols:
http:
endpoint: "0.0.0.0:4318"
grpc:
endpoint: "0.0.0.0:4317"

processors:
batch:
send_batch_size: 1000
send_batch_size: 500
timeout: 10s

exporters:
Expand Down
4 changes: 1 addition & 3 deletions libs/rust/utils/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ fn init_meter_provider() -> SdkMeterProvider {
.build()
.unwrap();

let reader = PeriodicReader::builder(exporter, runtime::Tokio)
.with_interval(std::time::Duration::from_secs(1))
.build();
let reader = PeriodicReader::builder(exporter, runtime::Tokio).build();

let meter_provider = MeterProviderBuilder::default().with_reader(reader).build();

Expand Down

0 comments on commit c9a6509

Please sign in to comment.