@ms-cloudpack/external-telemetry
v0.5.187
Published
Reporting external telemetry which is not about of cloudpack internals.
Keywords
Readme
@ms-cloudpack/external-telemetry
A library for reporting external (non-Cloudpack) telemetry data relevant to Cloudpack workflows. Data will be reported to Application Insights using Open Telemetry standards and show up on our internal dashboards for monitoring the changes in timings and usage of existing scenarios while migrating to new Cloudpack-powered workflows.
Telemetry is only reported by this package if a connection string is configured (telemetry.connectionString in cloudpack.config.json, or CLOUDPACK_TELEMETRY_CONNECTION_STRING environment variable). It will only be sent to your own Application Insights instance referenced by the connection string, not to Microsoft.
Example usage
- Create a client:
import { reportExternalTelemetryEvent } from '@ms-cloudpack/external-telemetry';
await reportExternalTelemetryEvent({
eventName: 'LEGACY-START',
attributes: {
'my-attribute': 'value',
},
});