Skip to content

Commit 97fb414

Browse files
committed
feedback
1 parent 9ba6da0 commit 97fb414

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
## Unreleased
44

5-
## [1.0.0b11](https://github.com/microsoft/ApplicationInsights-Python/releases/tag/v1.0.0b11) - 2023-04-12
6-
75
- Remove most configuration for Public Preview
86
([#277](https://github.com/microsoft/ApplicationInsights-Python/pull/277))
97
- Infer telemetry category disablement from exporter environment variables
108
([#278](https://github.com/microsoft/ApplicationInsights-Python/pull/278))
9+
10+
## [1.0.0b11](https://github.com/microsoft/ApplicationInsights-Python/releases/tag/v1.0.0b11) - 2023-04-12
11+
1112
- Reverse default behavior of instrumentations and implement configuration for exclusion
1213
([#253](https://github.com/microsoft/ApplicationInsights-Python/pull/253))
1314
- Use entrypoints instead of importlib to load instrumentations

azure-monitor-opentelemetry/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ You can configure further with [OpenTelemetry environment variables][ot_env_vars
6161
| Environment Variable | Description |
6262
|-------------|----------------------|
6363
| [OTEL_SERVICE_NAME][opentelemetry_spec_service_name], [OTEL_RESOURCE_ATTRIBUTES][opentelemetry_spec_resource_attributes] | Specifies the OpenTelemetry [resource][opentelemetry_spec_resource] associated with your application. |
64-
| `OTEL_TRACES_EXPORTER` | If set to `None`, disables collection and export of distributed tracingtelemetry. |
65-
| `OTEL_METRICS_EXPORTER` | If set to `None`, disables collection and export of metric telemetry. |
6664
| `OTEL_LOGS_EXPORTER` | If set to `None`, disables collection and export of logging telemetry. |
65+
| `OTEL_METRICS_EXPORTER` | If set to `None`, disables collection and export of metric telemetry. |
66+
| `OTEL_TRACES_EXPORTER` | If set to `None`, disables collection and export of distributed tracing telemetry. |
6767
| `OTEL_BLRP_SCHEDULE_DELAY` | Specifies the logging export interval in milliseconds. Defaults to 5000. |
68-
| `OTEL_TRACES_SAMPLER_ARG` | Specifies the ratio of distributed tracing telemetry to be [sampled][application_insights_sampling]. Accepted values are in the range [0,1]. Defaults to 1.0, meaning no telemetry is sampled out. |
6968
| `OTEL_BSP_SCHEDULE_DELAY` | Specifies the distributed tracing export interval in milliseconds. Defaults to 5000. |
69+
| `OTEL_TRACES_SAMPLER_ARG` | Specifies the ratio of distributed tracing telemetry to be [sampled][application_insights_sampling]. Accepted values are in the range [0,1]. Defaults to 1.0, meaning no telemetry is sampled out. |
7070
<!-- TODO: add once OTEL_LOG_LEVEL is supported in sdk -->
7171
<!-- Specifies the [logging level][logging_level] of the logs you would like to collect for your logging pipeline. Defaults to 0 which is `logging.NOTSET`. | OTEL_LOG_LEVEL | -->
7272

azure-monitor-opentelemetry/azure/monitor/opentelemetry/_configure.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# license information.
55
# --------------------------------------------------------------------------
66
from logging import getLogger
7-
from typing import Any, Dict
7+
from typing import Dict
88

99
from azure.monitor.opentelemetry._constants import (
1010
DISABLE_LOGGING_ARG,
@@ -50,9 +50,6 @@
5050
)
5151

5252

53-
InstrumentationConfig = Dict[str, Dict[str, Any]]
54-
55-
5653
def configure_azure_monitor(**kwargs) -> None:
5754
"""
5855
This function works as a configuration layer that allows the
@@ -103,7 +100,7 @@ def _setup_tracing(configurations: Dict[str, ConfigurationValue]):
103100

104101

105102
def _setup_logging(configurations: Dict[str, ConfigurationValue]):
106-
# TODO: Remove after upgrading to 1.18
103+
# TODO: Remove after upgrading to OTel SDK 1.18
107104
logging_export_interval_ms = configurations[LOGGING_EXPORT_INTERVAL_MS_ARG]
108105
logger_provider = LoggerProvider()
109106
set_logger_provider(logger_provider)

0 commit comments

Comments
 (0)