GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Incorrect try number producing invalid span id for OTEL airflow · Issue #41501 · apache/airflow

Incorrect try number producing invalid span id for OTEL airflow #41501

New issue
Copy link
New issue
Copy link
Closed
#41502
Closed
Incorrect try number producing invalid span id for OTEL airflow#41501
#41502
Copy link
Labels
area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

Description

@howardyoo
howardyoo
opened on Aug 15, 2024
Issue body actions

Apache Airflow version

2.10.0rc1

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When OTEL Airflow is enabled, there are series of IDs for trace and span being generated.
Part of the ID generation process involves using 'try number' of the task instance to produce a unique ID representation of it. Try number has been somewhat unstable in Airflow, where many of its deficiencies were fixed in here: #39336. Now, as try number issues are resolved, it is necessary to fix the OTEL airflow to not:

  • increment or decrement try_number of task instance when generating span id
  • increment or decrement try_number when instrumenting information related to task instance

Currently, the task instance contains span_id that may not be correct depending on the try_number.

What you think should happen instead?

  • spans containing span_id should reflect the correct try_number of the task instance
  • information about try number is correctly displayed when emitting span

How to reproduce

Run an example DAG file, and monitor the span id being generated. Observe that span id generated from the span link does not match that of task instance span due to the fact that task instance will have the try_number decremented conditionally.

Operating System

All OS

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. howardyoo
    added
    area:core
    kind:bugThis is a clearly a bug
    needs-triagelabel for new issues that we didn't triage yet
    on Aug 15, 2024
  2. potiuk
    added a commit that references this issue on Aug 16, 2024

    Incorrect try number subtraction producing invalid span id for OTEL a…

    dd3c3a7
  3. potiuk
    closed this as completedin #41502on Aug 16, 2024
  4. potiuk
    added 2 commits that reference this issue on Aug 16, 2024

    Incorrect try number subtraction producing invalid span id for OTEL a…

    7a13546

    Incorrect try number subtraction producing invalid span id for OTEL a…

    30cfb73
  5. Artuz37
    added a commit that references this issue on Aug 19, 2024

    Incorrect try number subtraction producing invalid span id for OTEL a…

    9203881
  6. romsharon98
    added a commit that references this issue on Aug 20, 2024

    Incorrect try number subtraction producing invalid span id for OTEL a…

    c48892e
  7. utkarsharma2
    added a commit that references this issue on Aug 22, 2024

    Sync v2-10-stable with v2-10-test to release python client v2.10.0 (#…

    91f8265
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.