Add tracing to Digital Credentials API get() flow [chromium/src : main]

2 views
Skip to first unread message

Mohamed Amir Yosef (Gerrit)

unread,
Nov 21, 2025, 6:49:03 AM11/21/25
to Anushka Kulkarni, Tejas Dhagawkar, Christian Biesinger, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
Attention needed from Anushka Kulkarni and Tejas Dhagawkar

Mohamed Amir Yosef added 4 comments

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Mohamed Amir Yosef . resolved

I am very sorry for the delay!
I have added some comments!

File content/browser/digital_credentials/digital_identity_request_impl.h
Line 22, Patchset 4 (Parent):
Mohamed Amir Yosef . unresolved

nit: revert this please

File third_party/blink/renderer/modules/credentialmanagement/digital_identity_credential.cc
Line 85, Patchset 4 (Latest): TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",
static_cast<int>(status), "request_type",
static_cast<int>(request_type), "protocol", protocol);
Mohamed Amir Yosef . unresolved

This is invoked for both create and get requests.
IMHO, it's better to filter here already!

Line 133, Patchset 4 (Latest): UseCounter::Count(resolver->GetExecutionContext(),
WebFeature::kIdentityDigitalCredentialsSuccess);
Mohamed Amir Yosef . unresolved

Unrelated but since we started the issuance OT, could you please split this too for get() and create() in a separate CL?

Open in Gerrit

Related details

Attention is currently required from:
  • Anushka Kulkarni
  • Tejas Dhagawkar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
Gerrit-Change-Number: 7127319
Gerrit-PatchSet: 4
Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
Gerrit-CC: Kaan Icer <ic...@chromium.org>
Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
Gerrit-Attention: Anushka Kulkarni <anusku...@microsoft.com>
Gerrit-Comment-Date: Fri, 21 Nov 2025 11:48:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Christian Biesinger (Gerrit)

unread,
Nov 24, 2025, 2:02:01 PM11/24/25
to Anushka Kulkarni, Mohamed Amir Yosef, Tejas Dhagawkar, Christian Biesinger, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
Attention needed from Anushka Kulkarni and Tejas Dhagawkar

Christian Biesinger added 7 comments

File base/trace_event/builtin_categories.h
Line 118, Patchset 4 (Latest): "Traces for the Digital Credentials API"),
Christian Biesinger . unresolved

shouldn't this be indented?

Line 117, Patchset 4 (Latest): perfetto::Category("content.digitalcredentials").SetDescription(
Christian Biesinger . unresolved

I would put this before content.fedcm because d comes before f alphabetically :)

File chrome/browser/digital_credentials/digital_identity_provider_android.cc
Line 48, Patchset 4 (Latest): TRACE_EVENT0(
Christian Biesinger . unresolved

AFAIK this is the legacy version of the macro and current versions should TRACE_EVENT(...). https://source.chromium.org/chromium/chromium/src/+/main:v8/src/tracing/trace-event-no-perfetto.h;l=104?q=TRACE_EVENT0&ss=chromium

File content/browser/digital_credentials/digital_identity_request_impl.cc
Line 473, Patchset 4 (Latest): TRACE_EVENT1("content.digitalcredentials", "DigitalIdentityRequestImpl::Get",
Christian Biesinger . unresolved

same here

File third_party/blink/renderer/modules/credentialmanagement/authentication_credentials_container.cc
Line 1321, Patchset 4 (Latest): TRACE_EVENT0("content.digitalcredentials",
Christian Biesinger . unresolved

same here

File third_party/blink/renderer/modules/credentialmanagement/digital_identity_credential.cc
Line 85, Patchset 4 (Latest): TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",
Christian Biesinger . resolved

here you do use the newer version already...?

Line 165, Patchset 4 (Latest): TRACE_EVENT0("content.digitalcredentials",
Christian Biesinger . unresolved

and here

Gerrit-Comment-Date: Mon, 24 Nov 2025 19:01:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Anushka Kulkarni (Gerrit)

unread,
Nov 27, 2025, 4:42:54 AM11/27/25
to Mohamed Amir Yosef, Tejas Dhagawkar, Christian Biesinger, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
Attention needed from Christian Biesinger, Mohamed Amir Yosef and Tejas Dhagawkar

Anushka Kulkarni added 10 comments

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Anushka Kulkarni . resolved

All comments have been resolved

File base/trace_event/builtin_categories.h
Line 118, Patchset 4: "Traces for the Digital Credentials API"),
Christian Biesinger . resolved

shouldn't this be indented?

Anushka Kulkarni

Done

Line 117, Patchset 4: perfetto::Category("content.digitalcredentials").SetDescription(
Christian Biesinger . resolved

I would put this before content.fedcm because d comes before f alphabetically :)

Anushka Kulkarni

Done

File chrome/browser/digital_credentials/digital_identity_provider_android.cc
Line 48, Patchset 4: TRACE_EVENT0(
Christian Biesinger . resolved

AFAIK this is the legacy version of the macro and current versions should TRACE_EVENT(...). https://source.chromium.org/chromium/chromium/src/+/main:v8/src/tracing/trace-event-no-perfetto.h;l=104?q=TRACE_EVENT0&ss=chromium

Anushka Kulkarni

Done

File content/browser/digital_credentials/digital_identity_request_impl.h
Mohamed Amir Yosef . resolved

nit: revert this please

Anushka Kulkarni

Done

File content/browser/digital_credentials/digital_identity_request_impl.cc
Line 473, Patchset 4: TRACE_EVENT1("content.digitalcredentials", "DigitalIdentityRequestImpl::Get",
Christian Biesinger . resolved

same here

Anushka Kulkarni

Done

File third_party/blink/renderer/modules/credentialmanagement/authentication_credentials_container.cc
Line 1321, Patchset 4: TRACE_EVENT0("content.digitalcredentials",
Christian Biesinger . resolved

same here

Anushka Kulkarni

Done

File third_party/blink/renderer/modules/credentialmanagement/digital_identity_credential.cc
Line 85, Patchset 4: TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",

static_cast<int>(status), "request_type",
static_cast<int>(request_type), "protocol", protocol);
Mohamed Amir Yosef . resolved

This is invoked for both create and get requests.
IMHO, it's better to filter here already!

Anushka Kulkarni

Done

Line 133, Patchset 4: UseCounter::Count(resolver->GetExecutionContext(),
WebFeature::kIdentityDigitalCredentialsSuccess);
Mohamed Amir Yosef . resolved

Unrelated but since we started the issuance OT, could you please split this too for get() and create() in a separate CL?

Anushka Kulkarni

The required changes have already been made

Line 165, Patchset 4: TRACE_EVENT0("content.digitalcredentials",
Christian Biesinger . resolved

and here

Anushka Kulkarni

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Christian Biesinger
  • Mohamed Amir Yosef
  • Tejas Dhagawkar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
    Gerrit-Change-Number: 7127319
    Gerrit-PatchSet: 6
    Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
    Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
    Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
    Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
    Gerrit-CC: Kaan Icer <ic...@chromium.org>
    Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
    Gerrit-Attention: Christian Biesinger <cbies...@chromium.org>
    Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
    Gerrit-Comment-Date: Thu, 27 Nov 2025 09:42:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Christian Biesinger <cbies...@chromium.org>
    Comment-In-Reply-To: Mohamed Amir Yosef <ma...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Christian Biesinger (Gerrit)

    unread,
    Nov 27, 2025, 11:07:23 AM11/27/25
    to Anushka Kulkarni, Mohamed Amir Yosef, Tejas Dhagawkar, Christian Biesinger, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
    Attention needed from Anushka Kulkarni, Mohamed Amir Yosef and Tejas Dhagawkar

    Christian Biesinger added 1 comment

    File third_party/blink/renderer/modules/credentialmanagement/digital_identity_credential.cc
    Line 89, Patchset 6 (Latest): TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",
    Christian Biesinger . unresolved

    so this is now scoped to the if, whereas the other trace events cover the rest of the function.

    If this is intentionally scoped to the if, `TRACE_EVENT_INSTANT` seems clearer.
    if not, I am not sure what the best way to handle that is; TRACE_EVENT_BEGIN/END would work but seems not ideal

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anushka Kulkarni
    • Mohamed Amir Yosef
    • Tejas Dhagawkar
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
        Gerrit-Change-Number: 7127319
        Gerrit-PatchSet: 6
        Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
        Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
        Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
        Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
        Gerrit-CC: Kaan Icer <ic...@chromium.org>
        Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
        Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
        Gerrit-Attention: Anushka Kulkarni <anusku...@microsoft.com>
        Gerrit-Comment-Date: Thu, 27 Nov 2025 16:07:17 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Anushka Kulkarni (Gerrit)

        unread,
        Dec 15, 2025, 10:20:18 AM12/15/25
        to Mohamed Amir Yosef, Tejas Dhagawkar, Christian Biesinger, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
        Attention needed from Christian Biesinger, Mohamed Amir Yosef and Tejas Dhagawkar

        Anushka Kulkarni added 1 comment

        File third_party/blink/renderer/modules/credentialmanagement/digital_identity_credential.cc
        Line 89, Patchset 6: TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",
        Christian Biesinger . resolved

        so this is now scoped to the if, whereas the other trace events cover the rest of the function.

        If this is intentionally scoped to the if, `TRACE_EVENT_INSTANT` seems clearer.
        if not, I am not sure what the best way to handle that is; TRACE_EVENT_BEGIN/END would work but seems not ideal

        Anushka Kulkarni

        Changed to TRACE_EVENT_INSTANT since the event is scoped to the if-block and doesn't measure the function's actual work; this clarifies it's marking a point in time, not a duration.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Christian Biesinger
        • Mohamed Amir Yosef
        • Tejas Dhagawkar
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
            Gerrit-Change-Number: 7127319
            Gerrit-PatchSet: 7
            Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
            Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
            Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
            Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
            Gerrit-CC: Kaan Icer <ic...@chromium.org>
            Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
            Gerrit-Attention: Christian Biesinger <cbies...@chromium.org>
            Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
            Gerrit-Comment-Date: Mon, 15 Dec 2025 15:19:44 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Christian Biesinger <cbies...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Anushka Kulkarni (Gerrit)

            unread,
            Dec 29, 2025, 9:31:30 AM (14 days ago) 12/29/25
            to Mohamed Amir Yosef, Tejas Dhagawkar, Christian Biesinger, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
            Attention needed from Christian Biesinger, Mohamed Amir Yosef and Tejas Dhagawkar

            Anushka Kulkarni added 2 comments

            File third_party/blink/renderer/modules/credentialmanagement/digital_identity_credential.cc
            Line 85, Patchset 4: TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",
            static_cast<int>(status), "request_type",
            static_cast<int>(request_type), "protocol", protocol);
            Mohamed Amir Yosef . resolved

            This is invoked for both create and get requests.
            IMHO, it's better to filter here already!

            Anushka Kulkarni

            Done

            Anushka Kulkarni

            @Mohamed Amir Yosef,Removing the kGet guard so the trace is emitted for both Get and Create flows, since OnCompleteRequest is invoked by both APIs. This ensures the event is recorded whenever the corresponding DC API is called. Also, placing the trace inside the if block would only capture the scope of that conditional rather than reflecting the overall execution of OnCompleteRequest.The CL for create flow is in progress.

            Line 89, Patchset 6: TRACE_EVENT("content.digitalcredentials", "OnCompleteRequest", "status",
            Christian Biesinger . resolved

            so this is now scoped to the if, whereas the other trace events cover the rest of the function.

            If this is intentionally scoped to the if, `TRACE_EVENT_INSTANT` seems clearer.
            if not, I am not sure what the best way to handle that is; TRACE_EVENT_BEGIN/END would work but seems not ideal

            Anushka Kulkarni

            Changed to TRACE_EVENT_INSTANT since the event is scoped to the if-block and doesn't measure the function's actual work; this clarifies it's marking a point in time, not a duration.

            Anushka Kulkarni

            @Christian Biesinger,Removing the kGet guard so the trace is emitted for both Get and Create flows, since OnCompleteRequest is invoked by both APIs. This ensures the event is recorded whenever the corresponding DC API is called.The CL for create flow is in progress.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Christian Biesinger
            • Mohamed Amir Yosef
            • Tejas Dhagawkar
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
            Gerrit-Change-Number: 7127319
            Gerrit-PatchSet: 8
            Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
            Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
            Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
            Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
            Gerrit-CC: Kaan Icer <ic...@chromium.org>
            Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
            Gerrit-Attention: Christian Biesinger <cbies...@chromium.org>
            Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
            Gerrit-Comment-Date: Mon, 29 Dec 2025 14:30:52 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Christian Biesinger <cbies...@chromium.org>
            Comment-In-Reply-To: Mohamed Amir Yosef <ma...@chromium.org>
            Comment-In-Reply-To: Anushka Kulkarni <anusku...@microsoft.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Christian Biesinger (Gerrit)

            unread,
            Jan 5, 2026, 1:46:23 PM (7 days ago) Jan 5
            to Anushka Kulkarni, Christian Biesinger, Mohamed Amir Yosef, Tejas Dhagawkar, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
            Attention needed from Anushka Kulkarni, Mohamed Amir Yosef and Tejas Dhagawkar

            Christian Biesinger voted and added 2 comments

            Votes added by Christian Biesinger

            Code-Review+1

            2 comments

            Patchset-level comments
            File-level comment, Patchset 8 (Latest):
            Christian Biesinger . resolved

            lgtm but please let mamir take a look as well

            Commit Message
            Line 9, Patchset 8 (Latest):This CL introduces Perfetto-based tracing in the Digital Credentials API browser-side implementation for the get() method. The tracing captures critical points in the request lifecycle to aid debugging and performance
            Christian Biesinger . unresolved

            please wrap this line. you can use gerrit's Format feature.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Anushka Kulkarni
            • Mohamed Amir Yosef
            • Tejas Dhagawkar
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement is not satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
                Gerrit-Change-Number: 7127319
                Gerrit-PatchSet: 8
                Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
                Gerrit-Reviewer: Christian Biesinger <cbies...@chromium.org>
                Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
                Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
                Gerrit-CC: Kaan Icer <ic...@chromium.org>
                Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
                Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
                Gerrit-Attention: Anushka Kulkarni <anusku...@microsoft.com>
                Gerrit-Comment-Date: Mon, 05 Jan 2026 18:46:10 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Mohamed Amir Yosef (Gerrit)

                unread,
                Jan 8, 2026, 8:14:06 AM (4 days ago) Jan 8
                to Anushka Kulkarni, Christian Biesinger, Tejas Dhagawkar, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
                Attention needed from Anushka Kulkarni and Tejas Dhagawkar

                Mohamed Amir Yosef added 1 comment

                File third_party/blink/renderer/modules/credentialmanagement/authentication_credentials_container.cc
                Line 1321, Patchset 8 (Latest): TRACE_EVENT("content.digitalcredentials",
                "AuthenticationCredentialsContainer::get");
                Mohamed Amir Yosef . unresolved

                `AuthenticationCredentialsContainer::get()` is invoked for many other flows in addition to Digital Credentials (e.g. Passkeys)

                Would it make more sense to move this to 1343?
                And in fact in this case, it is right before invoking `DiscoverDigitalIdentityCredentialFromExternalSource()` which is already annotated.
                So maybe this is not needed altogether?
                WDYT?

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Anushka Kulkarni
                • Tejas Dhagawkar
                Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement is not satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
                Gerrit-Change-Number: 7127319
                Gerrit-PatchSet: 8
                Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
                Gerrit-Reviewer: Christian Biesinger <cbies...@chromium.org>
                Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
                Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
                Gerrit-CC: Kaan Icer <ic...@chromium.org>
                Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
                Gerrit-Attention: Anushka Kulkarni <anusku...@microsoft.com>
                Gerrit-Comment-Date: Thu, 08 Jan 2026 13:13:47 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Anushka Kulkarni (Gerrit)

                unread,
                4:29 AM (1 hour ago) 4:29 AM
                to Christian Biesinger, Mohamed Amir Yosef, Tejas Dhagawkar, chromium...@chromium.org, Kaan Icer, blink-...@chromium.org, derinel+wat...@google.com, npm+...@chromium.org, spang...@chromium.org, tracing...@chromium.org, webauthn...@chromium.org, wfh+...@chromium.org, yigu+...@chromium.org
                Attention needed from Christian Biesinger, Mohamed Amir Yosef and Tejas Dhagawkar

                Anushka Kulkarni added 2 comments

                Commit Message
                Line 9, Patchset 8:This CL introduces Perfetto-based tracing in the Digital Credentials API browser-side implementation for the get() method. The tracing captures critical points in the request lifecycle to aid debugging and performance
                Christian Biesinger . resolved

                please wrap this line. you can use gerrit's Format feature.

                Anushka Kulkarni

                Done

                File third_party/blink/renderer/modules/credentialmanagement/authentication_credentials_container.cc
                Line 1321, Patchset 8: TRACE_EVENT("content.digitalcredentials",
                "AuthenticationCredentialsContainer::get");
                Mohamed Amir Yosef . resolved

                `AuthenticationCredentialsContainer::get()` is invoked for many other flows in addition to Digital Credentials (e.g. Passkeys)

                Would it make more sense to move this to 1343?
                And in fact in this case, it is right before invoking `DiscoverDigitalIdentityCredentialFromExternalSource()` which is already annotated.
                So maybe this is not needed altogether?
                WDYT?

                Anushka Kulkarni

                @Mohamed Amir Yosef, thanks for pointing that out! I agree with your recommendation — having the trace at the top-level get() would incorrectly tag non-DC flows under the Digital Credentials category, which could skew metrics and introduce noise. Made the required changes.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Christian Biesinger
                • Mohamed Amir Yosef
                • Tejas Dhagawkar
                Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement is not satisfiedCode-Owners
                  • requirement is not satisfiedCode-Review
                  • requirement is not satisfiedReview-Enforcement
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: comment
                  Gerrit-Project: chromium/src
                  Gerrit-Branch: main
                  Gerrit-Change-Id: If9e0e7e3765bf35955d35567b792bae3612086c2
                  Gerrit-Change-Number: 7127319
                  Gerrit-PatchSet: 11
                  Gerrit-Owner: Anushka Kulkarni <anusku...@microsoft.com>
                  Gerrit-Reviewer: Christian Biesinger <cbies...@chromium.org>
                  Gerrit-Reviewer: Mohamed Amir Yosef <ma...@chromium.org>
                  Gerrit-Reviewer: Tejas Dhagawkar <tdhag...@microsoft.com>
                  Gerrit-CC: Kaan Icer <ic...@chromium.org>
                  Gerrit-Attention: Tejas Dhagawkar <tdhag...@microsoft.com>
                  Gerrit-Attention: Christian Biesinger <cbies...@chromium.org>
                  Gerrit-Attention: Mohamed Amir Yosef <ma...@chromium.org>
                  Gerrit-Comment-Date: Mon, 12 Jan 2026 09:28:42 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy
                  Reply all
                  Reply to author
                  Forward
                  0 new messages