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

Implement observability in lambda functions #92

Open
ebridges opened this issue May 26, 2020 · 2 comments
Open

Implement observability in lambda functions #92

ebridges opened this issue May 26, 2020 · 2 comments
Projects

Comments

@ebridges
Copy link
Owner

ebridges commented May 26, 2020

Either dig into using AWS X-Ray, Dashbird or Epsagon, or configure thumbnail & processor services to route requests via NAT gateway.

@ebridges
Copy link
Owner Author

ebridges commented May 26, 2020

To implement Sentry for the media-processor service the following changes were investigated:

network/roles/lam/tasks/main.yml:45-52

+     SENTRY_RELEASE: "{{ service_name }}-processor/{{operating_env}}@{{app_version}}"
+     SENTRY_ENVIRONMENT: "{{operating_env}}"

processor/build.gradle

+    compile group: 'io.sentry', name: 'sentry-log4j2', version: '1.7.30'

processor/src/main/resources/log4j2.xml

    </Lambda>
+   <Sentry name="Sentry" />
  </Appenders>
  <Loggers>
    <Root level="info">
      <AppenderRef ref="Lambda" />
+     <AppenderRef ref="Sentry" level="WARN" />
    </Root>

processor/src/main/resources/sentry.properties

dsn=https://4c58bb8261854ccca9ab9832865b0345:[email protected]/5253282
mdctags=user_id,image_id
sample.rate=0.50

@ebridges ebridges added this to To do in v1.0 May 26, 2020
@ebridges
Copy link
Owner Author

ebridges commented Jul 19, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v1.0
  
To do
Development

No branches or pull requests

1 participant