This commit is contained in:
mii443
2025-04-11 10:43:21 +09:00
parent 40e6194942
commit 771711e3bf
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "ncb-tts-r2"
version = "1.9.0"
version = "1.9.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -3,7 +3,7 @@ version: '3'
services:
ncb-tts-r2:
container_name: ncb-tts-r2
image: ghcr.io/mii443/ncb-tts-r2:1.9.0
image: ghcr.io/mii443/ncb-tts-r2:1.9.1
environment:
- NCB_TOKEN=YOUR_BOT_TOKEN
- NCB_APP_ID=YOUR_BOT_ID

View File

@ -3,7 +3,7 @@ use opentelemetry::{
trace::{SamplingDecision, SamplingResult, TraceContextExt, TraceState, TracerProvider as _},
KeyValue,
};
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_otlp::{Protocol, WithExportConfig};
use opentelemetry_sdk::{
metrics::{MeterProviderBuilder, PeriodicReader, SdkMeterProvider},
trace::{RandomIdGenerator, SdkTracerProvider, ShouldSample},
@ -51,6 +51,7 @@ fn init_meter_provider(url: &str) -> SdkMeterProvider {
let exporter = opentelemetry_otlp::MetricExporter::builder()
.with_http()
.with_endpoint(url)
.with_protocol(Protocol::HttpBinary)
.with_temporality(opentelemetry_sdk::metrics::Temporality::default())
.build()
.unwrap();
@ -77,6 +78,7 @@ fn init_tracer_provider(url: &str) -> SdkTracerProvider {
let exporter = opentelemetry_otlp::SpanExporter::builder()
.with_http()
.with_endpoint(url)
.with_protocol(Protocol::HttpBinary)
.build()
.unwrap();