Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include parsedLambdaMessage for source == 'edge' #1056

Closed
wants to merge 1 commit into from

Conversation

tchief
Copy link

@tchief tchief commented Jan 26, 2022

Faced an issue with Vercel's edge functions.

This quick fix (hopefully) should allow to include parsedLambdaMessage for edge functions.

@chasers
Copy link
Contributor

chasers commented Jan 26, 2022 via email

@tchief
Copy link
Author

tchief commented Jan 27, 2022

No, not sure. This is what I see in logs.

Screenshot from 2022-01-27 12-15-12

{
  ...
  "source": "edge",
  "type": "stdout"
}

What was the process of introducing source == "lambda"? Have you created an issue in Vercel's team repository?

@chasers
Copy link
Contributor

chasers commented Jan 27, 2022

Ah, interesting! I'll have to look closer to be sure. This looks new. See their log drain docs, an edge source is not listed there.

@chasers
Copy link
Contributor

chasers commented Jan 27, 2022

@tchief can you send me the email address you used to sign up with Logflare? Send it to [email protected] and I can take a look at these payloads specifically.

This code looks for the lambda source so it can parse the response from the Lambda invocation run, which probably doesn't exist with the edge source as it seems the payload is totally different (notice the blanks in between the pipes).

@chasers
Copy link
Contributor

chasers commented Jun 1, 2022

Yeah Vercel does not have an 'edge' source.

@chasers chasers closed this Jun 1, 2022
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