-
Notifications
You must be signed in to change notification settings - Fork 99
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
GMP metric integration test is broken #584
Comments
I'll take a look into this, thanks @dashpole |
At first I assumed I just needed to add a timestamp to the new metrics, but it's already there. This is set by the exporter calling That still doesn't explain why this is failing for just these new metrics, so there's obviously something wrong with them in particular. But I thought this was interesting too. |
Are timestamps being set for target_info and scope_info? That was the ones I assumed it impacted |
@dashpole it is in the expect fixture: Lines 708 to 739 in 9c0f81b
|
I removed the metrics in question from the fixture in the previous PR: https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/pull/583/files#diff-e2bf93fa07e3c8d6067f0b4847f1c665899433fb5797f4d81a54d969d2664aecL60 It isn't clear to me if the expectation's timestamp is overridden by the test fixture sanitization or if it is actually set beforehand. Maybe when we override timestamps in the test, we should make they are not zero first, or output an error? |
Ah right, when we record fixtures we normalize them with an empty timestamp. That's probably why they were already in the expect fixture for target_info. It's supposed to only do it if the end time is nil, so I'm not sure how it got set at some point. But this is something for me to look at |
Maybe its non-nil, but set to zero? |
As part of #583, I found that the GMP tests are not passing when run against a real GCM endpoint.
Failure:
The text was updated successfully, but these errors were encountered: