Git Product home page Git Product logo

Comments (2)

kolanos avatar kolanos commented on June 12, 2024

@keegoid-nr This error should only be getting logged in debug mode, is that enabled?

from newrelic-lambda-extension.

keegoid-nr avatar keegoid-nr commented on June 12, 2024

CloudWatch logs with extension in debug log level:

RequestId: 92eaa6f2-c677-4f0c-a9d1-35ec33ac4720 Version: $LATEST
[NR_EXT] New Relic Lambda Extension starting up
[NR_EXT] Registration response: {"functionName":"[REDACTED]","functionVersion":"$LATEST","handler":"newrelic_lambda_wrapper.handler"}
[NR_EXT] Fetching license key from secret id [REDACTED]
[NR_EXT] Starting log server.
[NR_EXT] Log registration with request  {"buffering":{"maxBytes":1048576,"maxItems":10000,"timeoutMs":500},"destination":{"URI":"http://sandbox:45655","protocol":"HTTP"},"types":["platform","function"]}
LOGS	Name: newrelic-lambda-extension	State: Subscribed	Types: [platform,function]
[NR_EXT] Registered for logs. Got response code  200 "OK"
[NR_EXT] Fetching license key from secret id [REDACTED]
Lambda Handler starting up
EXTENSION	Name: newrelic-lambda-extension	State: Ready	Events: [INVOKE,SHUTDOWN]
[NR_EXT] Aggressive harvest yielded 0 invocations
2022-06-03 15:03:59,789 (17/MainThread) newrelic.core.agent INFO - New Relic Python Agent (7.10.0.175)
[NR_EXT] Sending function logs for request 92eaa6f2-c677-4f0c-a9d1-35ec33ac4720
[NR_EXT] Sending function logs for request 92eaa6f2-c677-4f0c-a9d1-35ec33ac4720
Hello, world
[NR_EXT] Sent 1/1 New Relic function log batches successfully in 259.825ms (258ms to transmit 0.3kB).
[NR_EXT] Agent telemetry bytes: [REDACTED]
[NR_EXT] unable to uncompress payload: EOF
[NR_EXT] Aggressive harvest yielded 1 invocations
[NR_EXT] Sent 1/1 New Relic payload batches with 1 log events successfully in 242.306ms (241ms to transmit 1.6kB).
END RequestId: 92eaa6f2-c677-4f0c-a9d1-35ec33ac4720
REPORT RequestId: 92eaa6f2-c677-4f0c-a9d1-35ec33ac4720	Duration: 533.67 ms	Billed Duration: 534 ms	Memory Size: 128 MB	Max Memory Used: 77 MB	Init Duration: 678.78 ms	

The error does not appear in info level logs:

START RequestId: e3a191b7-b3cf-4390-a43b-5005a85ddc18 Version: $LATEST
[NR_EXT] New Relic Lambda Extension starting up
[NR_EXT] Fetching license key from secret id [REDACTED]
[NR_EXT] Starting log server.
LOGS	Name: newrelic-lambda-extension	State: Subscribed	Types: [platform,function]
[NR_EXT] Fetching license key from secret id [REDACTED]
Lambda Handler starting up
EXTENSION	Name: newrelic-lambda-extension	State: Ready	Events: [INVOKE,SHUTDOWN]
2022-06-03 15:08:27,730 (17/MainThread) newrelic.core.agent INFO - New Relic Python Agent (7.10.0.175)
Hello, world
[NR_EXT] Sent 1/1 New Relic function log batches successfully in 267.829ms (250ms to transmit 0.3kB).
[NR_EXT] Sent 1/1 New Relic payload batches with 1 log events successfully in 276.598ms (275ms to transmit 1.5kB).
END RequestId: e3a191b7-b3cf-4390-a43b-5005a85ddc18
REPORT RequestId: e3a191b7-b3cf-4390-a43b-5005a85ddc18	Duration: 508.15 ms	Billed Duration: 509 ms	Memory Size: 128 MB	Max Memory Used: 79 MB	Init Duration: 649.08 ms

from newrelic-lambda-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.