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

Single-execution metric example app #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jiwen624
Copy link
Contributor

@jiwen624 jiwen624 commented Mar 1, 2022

Someone is asking for the usage of the custom metrics API. We don't seem to have a custom metrics demo app so I just added one.

Borgosz, Szymon 03:30
H! Do we have any documentation on how to use the metrics from https://github.com/appoptics/appoptics-apm-go in a single-execution Go application that does some stuff and exits to make sure those metrics are pushed to AO before the application closes? It looks like adding e.g. time.Sleep(time.Minute) before ending the program does kind-of work and agent seems to have enough time to push the metrics to AO, but is it actually the proper way of handling this use-case?

@codecov-commenter
Copy link

Codecov Report

Merging #183 (47c0da7) into master (914d2ae) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
- Coverage   81.94%   81.91%   -0.03%     
==========================================
  Files          40       40              
  Lines        4292     4292              
==========================================
- Hits         3517     3516       -1     
- Misses        638      639       +1     
  Partials      137      137              
Impacted Files Coverage Δ
v1/ao/internal/reporter/reporter_grpc.go 76.01% <0.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 914d2ae...47c0da7. Read the comment docs.

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

Successfully merging this pull request may close these issues.

2 participants