|
400 | 400 | """ |
401 | 401 | .. envvar:: OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER |
402 | 402 |
|
403 | | -The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER` provides either `grpc.ChannelCredentials` for grpc OTLP Log exporters, |
404 | | -or `request.Session` for HTTP Log exporters. |
| 403 | +The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_LOGS_CREDENTIAL_PROVIDER` provides either `grpc.ChannelCredentials` for the grpc OTLP Log exporter, |
| 404 | +or `requests.Session` for the HTTP OTLP Log exporter. Entry point providers should implement the following functions: |
| 405 | +
|
| 406 | +.. code-block:: python |
| 407 | + import requests, grpc |
| 408 | +
|
| 409 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 410 | + def request_session_provder() -> requests.Session: |
| 411 | +
|
| 412 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 413 | + def channel_credential_provider() -> grpc.ChannelCredentials: |
| 414 | +
|
405 | 415 | """ |
406 | 416 | OTEL_PYTHON_EXPORTER_OTLP_CREDENTIAL_PROVIDER = ( |
407 | 417 | "OTEL_PYTHON_EXPORTER_OTLP_CREDENTIAL_PROVIDER" |
408 | 418 | ) |
409 | 419 | """ |
410 | 420 | .. envvar:: OTEL_PYTHON_EXPORTER_OTLP_CREDENTIAL_PROVIDER |
411 | 421 |
|
412 | | -The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_CREDENTIAL_PROVIDER` provides either ChannelCredentials for all grpc OTLP exporters, |
413 | | -or request.Session for HTTP exporters. |
| 422 | +The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_CREDENTIAL_PROVIDER` provides either `grpc.ChannelCredentials` for all grpc OTLP exporters, |
| 423 | +or `requests.Session` for all HTTP OTLP exporters. Entry point providers should implement the following functions: |
| 424 | +
|
| 425 | +.. code-block:: python |
| 426 | + import requests, grpc |
| 427 | +
|
| 428 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 429 | + def request_session_provder() -> requests.Session: |
| 430 | +
|
| 431 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 432 | + def channel_credential_provider() -> grpc.ChannelCredentials: |
| 433 | +
|
414 | 434 | """ |
415 | 435 | OTEL_PYTHON_EXPORTER_OTLP_TRACES_CREDENTIAL_PROVIDER = ( |
416 | 436 | "OTEL_PYTHON_EXPORTER_OTLP_TRACES_CREDENTIAL_PROVIDER" |
417 | 437 | ) |
418 | 438 | """ |
419 | 439 | .. envvar:: OTEL_PYTHON_EXPORTER_OTLP_TRACES_CREDENTIAL_PROVIDER |
420 | 440 |
|
421 | | -The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_TRACES_CREDENTIAL_PROVIDER` provides either ChannelCredentials for grpc OTLP Span exporters, |
422 | | -or request.Session for HTTP Span exporters. |
| 441 | +The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_TRACES_CREDENTIAL_PROVIDER` provides either `grpc.ChannelCredentials` for the grpc OTLP Span exporter, |
| 442 | +or `requests.Session` for the HTTP OTLP Span exporter. Entry point providers should implement the following functions: |
| 443 | +
|
| 444 | +.. code-block:: python |
| 445 | + import requests, grpc |
| 446 | +
|
| 447 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 448 | + def request_session_provder() -> requests.Session: |
| 449 | +
|
| 450 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 451 | + def channel_credential_provider() -> grpc.ChannelCredentials: |
| 452 | +
|
423 | 453 | """ |
424 | 454 | OTEL_PYTHON_EXPORTER_OTLP_METRICS_CREDENTIAL_PROVIDER = ( |
425 | 455 | "OTEL_PYTHON_EXPORTER_OTLP_METRICS_CREDENTIAL_PROVIDER" |
426 | 456 | ) |
427 | 457 | """ |
428 | 458 | .. envvar:: OTEL_PYTHON_EXPORTER_OTLP_METRICS_CREDENTIAL_PROVIDER |
429 | 459 |
|
430 | | -The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_METRICS_CREDENTIAL_PROVIDER` provides either ChannelCredentials for grpc OTLP Metric exporters, |
431 | | -or request.Session for HTTP Metric exporters. |
| 460 | +The :envvar:`OTEL_PYTHON_EXPORTER_OTLP_METRICS_CREDENTIAL_PROVIDER` provides either `grpc.ChannelCredentials` for the grpc OTLP Metric exporter, |
| 461 | +or `requests.Session` for the HTTP OTLP Log exporter. Entry point providers should implement the following functions: |
| 462 | +
|
| 463 | +.. code-block:: python |
| 464 | + import requests, grpc |
| 465 | +
|
| 466 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 467 | + def request_session_provder() -> requests.Session: |
| 468 | +
|
| 469 | + # Add a reference to this function under the `opentelemetry_otlp_credential_provider` entry point. |
| 470 | + def channel_credential_provider() -> grpc.ChannelCredentials: |
| 471 | +
|
432 | 472 | """ |
433 | 473 |
|
434 | 474 | OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE = "OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE" |
|
0 commit comments