Skip to content

Lambda Logs API? #392

Closed
Closed
@tannerntannern

Description

@tannerntannern

I've successfully used this project's lambda-extension library to respond to Invoke and Shutdown events (as the examples demonstrate), but I'm struggling to figure out the best path to use the Lambda Logs API.

My understanding of the lambda-extension library code (as a Rust novice) is that the extension_id is private. In order to use the Lambda Logs API you must subscribe with the extension ID, which you get from registering the extension with the Extensions API. But there's no way that I can see to get the extension_id after registering the extension.

So my question is: If I've used the lambda-extension library as the base for my extension, how can I use the Lambda Logs API if the extension ID is unavailable externally? I could imagine a new lambda-logs library or additional functions in the lambda-extension library, but neither of those options exist currently. What can I do in the meantime without essentially reimplementing the lambda-extension library myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions