Skip to content

feat(images): add route observability#1123

Open
Komzpa wants to merge 1 commit into
Soju06:mainfrom
Komzpa:issue-620-images-observability
Open

feat(images): add route observability#1123
Komzpa wants to merge 1 commit into
Soju06:mainfrom
Komzpa:issue-620-images-observability

Conversation

@Komzpa

@Komzpa Komzpa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Refs #620.

Summary

  • add bounded Prometheus telemetry for /v1/images/generations and /v1/images/edits
  • emit structured images_route_complete logs for image route success/error exits without prompts, image bytes, file names, tokens, or raw upstream payloads
  • document the Images API observability contract in the images compatibility spec

Validation

  • uv run pytest tests/integration/test_proxy_images.py::test_images_generations_returns_envelope_on_success tests/integration/test_proxy_images.py::test_images_generations_failed_image_returns_5xx tests/unit/test_metrics.py::test_prometheus_metrics_defined_when_dependency_available -q
  • make lint
  • git diff --check

@Komzpa Komzpa force-pushed the issue-620-images-observability branch from 68a1242 to b29af86 Compare July 1, 2026 03:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 68a12422f0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/modules/proxy/api.py
Comment thread app/modules/proxy/api.py
@Komzpa

Komzpa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b29af86db8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/modules/proxy/api.py Outdated
@Komzpa Komzpa force-pushed the issue-620-images-observability branch from b29af86 to dc17114 Compare July 1, 2026 03:14
@Soju06 Soju06 added the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Soju06

Soju06 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

@codex review

@Soju06 Soju06 removed the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Komzpa

Komzpa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc17114579

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/modules/proxy/images_observability.py Outdated
Comment thread app/modules/proxy/api.py Outdated
@Komzpa Komzpa added the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Komzpa Komzpa force-pushed the issue-620-images-observability branch from dc17114 to a3c9073 Compare July 1, 2026 03:35
@Komzpa

Komzpa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@Komzpa Komzpa removed the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3c9073b66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/modules/proxy/api.py
@Komzpa Komzpa added the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Komzpa Komzpa force-pushed the issue-620-images-observability branch from a3c9073 to 30380ec Compare July 1, 2026 03:57
@Komzpa Komzpa removed the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Komzpa

Komzpa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30380ec588

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread openspec/specs/images-api-compat/spec.md
Comment thread app/modules/proxy/api.py Outdated
Comment thread app/modules/proxy/api.py Outdated
@Komzpa Komzpa added the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Komzpa Komzpa force-pushed the issue-620-images-observability branch from 30380ec to 14e40cb Compare July 1, 2026 04:15
@Soju06 Soju06 removed the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Soju06

Soju06 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

@codex review

1 similar comment
@Komzpa

Komzpa commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 14e40cb484

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/modules/proxy/api.py
Comment thread app/modules/proxy/api.py Outdated
@Komzpa Komzpa added the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Komzpa Komzpa force-pushed the issue-620-images-observability branch from 14e40cb to b9fbf63 Compare July 1, 2026 04:31
@Soju06 Soju06 removed the 🤖 codex: needs work [@codex review] raised an issue label Jul 1, 2026
@Soju06

Soju06 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: b9fbf63d99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Soju06 Soju06 added 🤖 codex: ok [@codex review] says no issues found. and removed 🤖 codex: ok [@codex review] says no issues found. labels Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants