Azure / azure-sdk

This is the Azure SDK parent repository and mostly contains documentation around guidelines and policies as well as the releases for the various languages supported by the Azure SDK.
http://azure.github.io/azure-sdk
MIT License
487 stars 296 forks source link

Azure DevEx Architecture Board: Introduction of Application Insights OpenTelemetry distro #5423

Open azure-sdk opened 1 year ago

azure-sdk commented 1 year ago

New SDK Review meeting has been requested.

Service Name: Review Created By: Liudmila Molkova Review Date: 2/2/2023 2:05 PM PT

Contacts and Timeline

About the Service

About the client library

Azure Monitor is working on OpenTelemtery distros - uber-packages that bring and configure all users need to instrument their applications (OpenTelemetry, instrumentation libraries, and exporter) to send all kinds of telemetry to ApplicationInsights.

The plan is that only Python will have green-field SDK that's based on vanilla OpenTelemetry. Other languages will evolve existing Application Insights SDKs adding new OTel-based experiences to them for the time being.

More context: https://microsoft-my.sharepoint.com/:p:/p/limolkova/Eax8fQ_BnBRGmb9VVwS8hBYBneOhY1foUxrVW0bq2VupHg?e=NfDAPJ

Step 1: Champion Scenarios

API views:

Step 2: Quickstart Samples (Optional)

from azure.monitor.opentelemetry.distro import configure_azure_monitor
from opentelemetry import trace

configure_azure_monitor(
    connection_string="<your-connection-string>",
    service_name="foo_service",
    tracing_export_interval_millis=15000,
    logging_level=WARN
)

logger = getLogger(__name__)
tracer = trace.get_tracer(__name__)

with tracer.start_as_current_span("hello"):
    print("Hello, World!")
    logger.info("Correlated info log")
    logger.warning("Correlated warning log")
    logger.error("Correlated error log")
tg-msft commented 1 year ago

Recording (MS INTERNAL ONLY)