Skip to content

Conversation

milaGGL
Copy link
Contributor

@milaGGL milaGGL commented Oct 24, 2024

  • Remove built-in metric EndToEndLatency and the MonitoredStreamResponseObserver class
  • Add resource attributes to be mapped to GCM monitored resource
  • Shutdown the metric reader when close/shutdown the firestore instance
  • Re-factor the telemetry constants
  • Add E2E integration tests against Google Cloud Monitoring and run against nightly only
  • Add E2E tests with InMemoryMetricReader
  • Add unit tests

throw error;
}
}

class MonitoredStreamResponseObserver implements ApiStreamObserver<RunQueryResponse> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since E2Elatency is removed, it does not make sense to have a class just to record first response latency: https://github.com/googleapis/java-firestore/pull/1840/files#r1809028150


// These end-to-end metrics tests are resource-intensive and are only intended to run in a
// nightly testing environment.
// assumeTrue(isNightlyTesting);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: uncomment this line when PR is ready to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/java-firestore API. size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants