Skip to content

Add stacktrace property to LogEntry (openEO API v1.3)#892

Merged
soxofaan merged 3 commits into
masterfrom
copilot/add-stacktrace-to-logentry
Apr 29, 2026
Merged

Add stacktrace property to LogEntry (openEO API v1.3)#892
soxofaan merged 3 commits into
masterfrom
copilot/add-stacktrace-to-logentry

Conversation

Copilot AI commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

openEO API v1.3 added a stacktrace field to log entries (e.g. from GET /jobs/{job_id}/logs) to provide structured stack trace information separate from the log message.

Changes

  • LogEntry.stacktrace property — returns the stacktrace string from the entry, or None if absent
  • Docstring — documents the new field alongside existing fields
  • Tests — covers both the absent and present cases
log = LogEntry(
    id="log01",
    level="error",
    message="Something went wrong",
    stacktrace="Traceback (most recent call last):\n  ...",
)
log.stacktrace  # "Traceback (most recent call last):\n  ..."

# Field absent → None
LogEntry(id="log01", level="error", message="oops").stacktrace  # None

Copilot AI linked an issue Apr 28, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add stacktrace to LogEntry for log entries Add stacktrace property to LogEntry (openEO API v1.3) Apr 28, 2026
Copilot AI requested a review from soxofaan April 28, 2026 06:14
Comment thread openeo/rest/models/logs.py Outdated
Copilot AI requested a review from soxofaan April 28, 2026 10:08
@soxofaan soxofaan marked this pull request as ready for review April 29, 2026 07:35
@soxofaan soxofaan merged commit 34ee038 into master Apr 29, 2026
1 check passed
@soxofaan soxofaan deleted the copilot/add-stacktrace-to-logentry branch April 29, 2026 07:37
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.

add stacktrace to LogEntry

2 participants