Open gosunilgo opened 1 year ago
@gosunilgo Thanks for the feature request
The feature is currently under development and we have a minimal feature set
Currently this feature can be accessed by adding following configuration option to user settings
cloudcode.beta.enableApigeeTrace: true
Once this flag is enabled
Cloud Code: Open Apigee trace
A sample view of the trace
@shirishtrivikr I'm loving this feature!
One note - I've noticed the ordering of calls is not being populated in order in the report.
I'm on gcr.io/apigee-release/hybrid/apigee-emulator:1.11.0
I am getting some error when i add config to setting, Using the 1.11.0 emulator. Any one can guide on this?
The squiggly underline for that setting is indicating a warning not an error. Are you getting any actual error while exercising this feature?
Note to @shirishtrivikr to respond for any group the user needs to be part of to exercise the trace feature.
I am getting some error when i add config to setting, Using the 1.11.0 emulator. Any one can guide on this?
@sripasg yes its a warning, I am able to start tracing, Traces view automatically loaded when trace data is available but it automatically stop receiving request after some time, I have to start it again n again. Is there any setting or config available to set how long it should receive calls
@addelabid90 The trace is started for 10 minutes every time. After 10 minutes the emulator will automatically stop the tracing.
Currently there is no parameter which can control this behavior.
Thanks Shirish
On Thu, Mar 28, 2024 at 3:17 PM adeelabid90 @.***> wrote:
@sripasg https://github.com/sripasg yes its a warning, I am able to start tracing, Traces view automatically loaded when trace data is available but it automatically stop receiving request after some time, I have start to start it again n again. Is there any setting or config available to set how long it should receive calls
— Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/847#issuecomment-2024791366, or unsubscribe https://github.com/notifications/unsubscribe-auth/APALA6QTDZ7HXPWPJK7B2ETY2PRJ5AVCNFSM6AAAAAA4N4WDWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUG44TCMZWGY . You are receiving this because you were mentioned.Message ID: <GoogleCloudPlatform/cloud-code-vscode/issues/847/2024791366 @.***>
--
Shirish Kuncolienkar
@.***
Apigee
I use the apigee emulator to run some unit tests on proxy code in a pipeline. Until now I could only verify the response body/headers. Since this is available I could also verify internal variables. Is there any documentation on the emulator's api calls to start the debug trace and export the variables?
Thanks, Bart
If someone is interested in the api calls the emulator is supporting (for taking traces): I looked around in the sourcecode of the plugin and made a list of them, which you can find here: https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/524#issuecomment-2216843724
Use case What are you trying to do that our extension doesn't let you?
Trace access doesn't seem to be enabled in Apigee Emulator. We would like same feature/ability to trace headers like Apigee-Debug - https://cloud.google.com/apigee/docs/api-platform/debug/trace
Example - view traffic during each policy step
Like OPDK or apigee-hybridX, hosted version clearly allows ease-of-use by quickly viewing trace, via console. We are not looking for UI-replacement, but the actual tracefile contents. We can upload tracefile to hybrid for analysis.
ideas?
Feature
Option1 - Give user ability to download tracefile/debugfile from apigee-emulator. Like OPDK, we would like to download the tracefile during/after the test executions Option2 - Can the emulator emit metrics for scraping purposes ?