community.general.elastic (8.5.0) — callback

Create distributed traces for each Ansible task in Elastic APM

| "added in version" 3.8.0 of community.general"

Authors: Victor Martinez (@v1v) <VictorMartinezRubio@gmail.com>

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This callback creates distributed traces for each Ansible task in Elastic APM.

You can configure the plugin with environment variables.

See U(https://www.elastic.co/guide/en/apm/agent/python/current/configuration.html).


Requirements

Inputs

    
apm_api_key:
    description:
    - Use the APM API key
    env:
    - name: ELASTIC_APM_API_KEY
    type: str

traceparent:
    description:
    - The L(W3C Trace Context header traceparent,https://www.w3.org/TR/trace-context-1/#traceparent-header).
    env:
    - name: TRACEPARENT
    type: str

apm_server_url:
    description:
    - Use the APM server and its environment variables.
    env:
    - name: ELASTIC_APM_SERVER_URL
    type: str

apm_secret_token:
    description:
    - Use the APM server token
    env:
    - name: ELASTIC_APM_SECRET_TOKEN
    type: str

apm_service_name:
    default: ansible
    description:
    - The service name resource attribute.
    env:
    - name: ELASTIC_APM_SERVICE_NAME
    type: str

hide_task_arguments:
    default: false
    description:
    - Hide the arguments for a task.
    env:
    - name: ANSIBLE_OPENTELEMETRY_HIDE_TASK_ARGUMENTS
    type: bool

apm_verify_server_cert:
    default: true
    description:
    - Verifies the SSL certificate if an HTTPS connection.
    env:
    - name: ELASTIC_APM_VERIFY_SERVER_CERT
    type: bool