Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-draxx committed Mar 4, 2025
1 parent 79f48cf commit 0524ccc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { OtelTracerProvider } from '../../observability/otel-tracer-provider'
import { Container, ContainerModule } from '../../utils/di/container'


export const OtelModule = new ContainerModule(
(container: Container) => {
container.bind<OtelTracerProvider>(OtelTracerProvider).toSelf()
})
export const OtelModule = new ContainerModule((container: Container) => {
container.bind<OtelTracerProvider>(OtelTracerProvider).toSelf()
})
7 changes: 3 additions & 4 deletions src/core/infrastructure/observability/otel-tracer-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Span, trace, Tracer } from "@opentelemetry/api";
import { injectable } from "inversify";
import { Span, trace, Tracer } from '@opentelemetry/api'
import { injectable } from 'inversify'

@injectable()
export class OtelTracerProvider {
Expand All @@ -17,5 +17,4 @@ export class OtelTracerProvider {
public endCustomSpan(span: Span): void {
span.end()
}

}
}

0 comments on commit 0524ccc

Please sign in to comment.