Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Global panic handler as an agent option #208

Merged
merged 2 commits into from
Mar 26, 2020
Merged

Conversation

tonyredondo
Copy link
Contributor

Closes #207

This PR moves the global panic handler from the scopeagent.Run method to an option for the agent, this options it's added in the auto instrumentation by default.

This should fix the okteto problem while compiling for arm64.

@drodriguezhdez
Copy link
Contributor

image

@tonyredondo
Copy link
Contributor Author

Great! It compiles

@drodriguezhdez
Copy link
Contributor

drodriguezhdez commented Mar 26, 2020

What you think about using this branch to use the new version of go-mpatch (1.0.2)
https://github.com/undefinedlabs/go-mpatch/releases/tag/1.0.2

@drodriguezhdez
Copy link
Contributor

image

image

Compiles with autoinstrumentation

@drodriguezhdez
Copy link
Contributor

@tonyredondo please let me know if LGTY

@tonyredondo
Copy link
Contributor Author

Can you test with a breakpoint if the global panic handler its working when using autoinstrument? To make sure of that. I can test it but not right now

@drodriguezhdez
Copy link
Contributor

It's working because if you tested with the previous go-mpatch version and with autoinstrumentation, it didn't compile.

@tonyredondo
Copy link
Contributor Author

Ohh perfect, then LGTM

@drodriguezhdez drodriguezhdez merged commit db10f26 into master Mar 26, 2020
@drodriguezhdez drodriguezhdez deleted the panic-handler-option branch March 26, 2020 09:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global panic handler force monkey patching in the agent init
2 participants