File

projects/opentelemetry-interceptor/src/lib/component/otel-webtracer/otel-webtracer.component.ts

Description

Otel Web Tracer Component

Implements

OnInit

Metadata

Index

Methods

Constructor

constructor(instrumentationService: InstrumentationService)

Constructor

Parameters :
Name Type Optional Description
instrumentationService InstrumentationService No

InstrumentationService

Methods

ngOnInit
ngOnInit()

Init Component

Returns : void
import { Component, OnInit } from '@angular/core';
import { InstrumentationService } from '../../services/instrumentation/instrumentation.service';


/**
 * Otel Web Tracer Component
 */
@Component({
  // eslint-disable-next-line @angular-eslint/component-selector
  selector: 'otel-instrumentation',
  template: '',
})
export class OtelWebTracerComponent implements OnInit {

  /**
   * Constructor
   *
   * @param instrumentationService InstrumentationService
   */
  constructor(private instrumentationService: InstrumentationService) { }

  /**
   * Init Component
   */
  ngOnInit(): void {
   this.instrumentationService.initInstrumentation();
  }

}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""