You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Custom Module for OpenTelemetry
Standalone components don't directly support ModuleWithProviders types in the imports array. To work around this, create a separate Angular module to handle the OpenTelemetry configuration:
Import the Module in Your Standalone Component
In your standalone component, import this module:
import{Component}from'@angular/core';import{IonApp,IonRouterOutlet}from'@ionic/angular/standalone';import{OpenTelemetryModule}from'./open-telemetry.module';
@Component({selector: 'app-root',templateUrl: 'app.component.html',standalone: true,imports: [IonApp,IonRouterOutlet,OpenTelemetryModule// Import the custom OpenTelemetry module here]})exportclassAppComponent{constructor(){console.log('AppComponent initialized with OpenTelemetry');}}
This approach doesn't work for me. It does not intercept my requests neither does it send any trace. The modules seems to get initialized (see the console log) though. Any help would be appreciated
The text was updated successfully, but these errors were encountered:
What I did:
Standalone components don't directly support ModuleWithProviders types in the imports array. To work around this, create a separate Angular module to handle the OpenTelemetry configuration:
In your standalone component, import this module:
This approach doesn't work for me. It does not intercept my requests neither does it send any trace. The modules seems to get initialized (see the console log) though. Any help would be appreciated
The text was updated successfully, but these errors were encountered: