Problem/Motivation

AI Media requests reach Drupal AI without tags, so AI Logging and AI Observability cannot tell them apart from other AI calls on the site, or show usage per generator.

Steps to reproduce

  1. Enable AI Logging.
  2. Generate an image and an SVG.
  3. The log entries carry no AI Media tags.

Proposed resolution

  • Tag each request with ai_media, ai_media:<generator> and the step (generate, name, alt, description), through the provider's setTag().
  • Document how to filter AI Logging by these tags.
  • Kernel test.

AI-Generated: Yes

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ❌ Automated unit/functional testing coverage
  • ❌ Developer Documentation support
  • ❌ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • None.

API changes

  • None.

Data model changes

  • None.

Release notes snippet

  • N/A

Issue fork ai_media-3633456

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 06cabde7 on 1.0.x
    feat: #3633456 Tag every AI Media request for Drupal AI Logging and...
rajab natshah’s picture

Status: Active » Fixed
Issue tags: +ai_media-1.0.0-alpha3

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.