You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue when enabling the datadog extension. When I add this extension to my Lambda's layers, the Lambda function produces the following warning:
Warning: PHP Startup: Unable to load dynamic library 'ddappsec.so' (tried: /opt/bref/extensions/ddappsec.so (/opt/bref/extensions/ddappsec.so: cannot open shared object file: No such file or directory), /opt/bref/extensions/ddappsec.so.so (/opt/bref/extensions/ddappsec.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
My full serverless.yml looks like this
service: php-testprovider:
name: aws#architecture: arm64region: eu-central-1environment:
# Datadog specific settingsDD_SITE: datadoghq.comDD_API_KEY: __SECRET__DD_TRACE_ENABLED: trueDD_SERVICE: php-testplugins:
- ./vendor/bref/bref
- ./vendor/bref/extra-php-extensionsfunctions:
test:
handler: App\Infrastructure\Bref\EventHandlerdescription: 'Test function'runtime: php-82timeout: 60layers:
- ${bref-extra:gd-php-82}
- ${bref-extra:datadog-php-82}
- arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Extension:43 # changing the layers order, didn't helppackage:
patterns:
# Excluded files and folders for deployment
- '!assets/**'
- '!node_modules/**'
- '!public/build/**'
- '!tests/**'
- '!var/**'# If you want to include files and folders that are part of excluded folders, add them at the end
- 'var/cache/prod/**'
- 'public/build/entrypoints.json'
- 'public/build/manifest.json'
I see the function's logs in Datadog (probably because of the Datadog-Extension layer?, no both layers are needed), but there is no trace information.
Do you have any idea what's the issue here?
The text was updated successfully, but these errors were encountered:
I'm running into an issue when enabling the datadog extension. When I add this extension to my Lambda's layers, the Lambda function produces the following warning:
My full
serverless.yml
looks like thisI see the function's logs in Datadog (
probably because of the Datadog-Extension layer?, no both layers are needed), but there is no trace information.Do you have any idea what's the issue here?
The text was updated successfully, but these errors were encountered: