Proto commits in GoogleCloudPlatform/opentelemetry-operations-go

These 13 commits are when the Protocol Buffers files have changed:

Commit:051c551
Author:David Ashpole
Committer:GitHub

Migrate collector self-observability from OpenCensus to OpenTelemetry (#885) * remove opencensus grpc instrumentation, and plumb meterProvider to collector exporters * migrate opencensus self-observability metrics to opentelemetry * remove unused package * tidy * pass meterprovider from in-memory exporter to test exporter * update fixtures * make fieldalignment * update grpc to v1.65.0, and use grpc observability * normalize self-obs metrics * make fixtures * test self-observability metrics for logs and trace collector exporters * make fixtures * fix integrationtest

The documentation is generated from this commit.

Commit:92fd371
Author:David Ashpole
Committer:GitHub

Fix trace and logging user agent, and add tests (#714) * prepend user agent to avoid overwriting provided options * cloudmock records user agent header * add user agent to text fixture protos * update fixtures with user agent * check user agent in integration tests * set {{version}} in logging exporter * add fixture case for custom user agent

Commit:419d54a
Author:David Ashpole
Committer:GitHub

fix import paths for integration test module (#700)

Commit:720e1b5
Author:Mike Dame
Committer:GitHub

Bump Cloud Trace library to v1.8.0 (#550) * Add WithBatchRetry to trace exporter * Add WithRetry test cases * make lint * bump to cloud.google.com/go/trace v1.8.0 * Remove manual retry config * fixup tests * Migrate proto import paths See https://github.com/googleapis/google-cloud-go/blob/main/migration.md

Commit:4b18dd3
Author:Mike Dame
Committer:GitHub

Organize integration test cases by type (#461) * Move test fixtures into organized folders * Organize test cases * Update header year * Move protos * Fix typo and unexported vars * make precommit

Commit:2957ea8
Author:Mike Dame
Committer:GitHub

Add traces integration tests (#457) * Add test server and fixture recording * Add traces test cases * Add traces test code * Add traces integration test * fix header check

Commit:76be1e8
Author:Mike Dame
Committer:GitHub

Collector logging exporter (#373) * Initial setup for logs collector exporter (#333) * Start work on logs collector * New commit to poke Github * make gotidy Co-authored-by: Punya Biswal <punya@google.com> * collector: added log conversion to entries (#344) * collector: added log conversion to entries Added functionality to convert pdata Logs to Cloud Logging entries. Also added necessary configuration and self observability. * collector: log mapper, tests, resolving comments Switched to the logMapper pattern, mimicking what the MetricsExporter does. This separation allowed for unit testing the pure functions on the logMapper. Added the first set of unit tests which cover lines but probably don't exhaust edge cases. Should be expanded upon. Removed some fields that we've decided are too nuanced to be part of this PR. * integrationtest: ran make gotidy Some changes were made after running make gotidy. * collector: added required header, fixed linting Forgot to add the Google header to logs_test.go `golint` wants http to be all capitals. `govet` warned about a shadowed declaration of `err` and even though it wasn't a problem figured I'd make it go away anyway. * collector: resetting go.mod Resetting go.mod to the versions in the target branch since there is another PR to update dependencies that we'll rebase on. * collector: parse HTTPRequest from proper place The HTTPRequest data is actually going to come from an attribute in the log, which actually enables this code to be far simpler; originally I wrote it as if the httpRequest was going to be a key in the body that needed to be extracted. With this not being the case, got to remove a ton of json marshalling code and even removed the need to configure parsing HTTP request, since the operation to look it up is constant and we don't lose anything by just checking every time. * collector: lint fix HTTP caps * integrationtest: revert go.mod changes Going back to the previous version here too to make the feature branch rebase easier. * collector: added todo comment Unmarshalling JSON can be slow when done incessantly, left a TODO to investigate an alternative for serializing the com.google.httpRequest data. * React to rebase * Parse basic attributes for cloud logging exporter (#355) * Parse instrumentation scope labels * Parse timestamp * Parse sourceLocation * Parse trace and span ID * Pass Body() to Payload and add checks for instrumentation labels * Change tests and log body parsing for different types * Add tests for trace/span/sourceLocation * go lint * Log exporter severity level parsing from otel->cloud logging (#357) * Update logging export to use new v0.49 types * Parse log name from config or attribute (#361) * Add DefaultLogName config option * Switch to generated client and parse log name * Add test cases * Batch multiple entries into a maximum request size (#363) * Add config options and implement request batching * Refactor to send requests in chunks * Add logging integration tests (#368) * Rename TestCases to MetricsTestCases * Add logs integration test * Logs integration test (copying metrics framework) * Update HTTPRequest parsing for different value types * Fix up logs.go * Unify MetricsTestCase and LogsTestCase structs * Update recordfixtures command for logs * gofmt * Set project from ADC * Use development logger * Record logs and metrics * make gotidy Co-authored-by: Punya Biswal <punya@google.com> Co-authored-by: Braydon Kains <93549768+braydonk@users.noreply.github.com>

Commit:d99276b
Author:Mike Dame
Committer:GitHub

Add logging integration tests (#368) * Rename TestCases to MetricsTestCases * Add logs integration test * Logs integration test (copying metrics framework) * Update HTTPRequest parsing for different value types * Fix up logs.go * Unify MetricsTestCase and LogsTestCase structs * Update recordfixtures command for logs * gofmt * Set project from ADC * Use development logger * Record logs and metrics

Commit:e2e6a39
Author:David Ashpole
Committer:GitHub

make integrationtest not internal (#285)

Commit:db92df8
Author:Aaron Abbott
Committer:GitHub

Use OC stackdriver exporter to capture self observability metrics as GCM protos (#282)

Commit:ef67c4c
Author:Aaron Abbott
Committer:GitHub

Add self observability metrics to integration test fixtures (#265) * self observability fixtures WIP * update comment * make generate * make ci * remove commented code

Commit:d2378ce
Author:Aaron Abbott
Committer:GitHub

Add support for CreateServiceTimeSeries in the integration test server (#246)

Commit:5146b84
Author:Aaron Abbott
Committer:GitHub

Handle test scenarios which send more than one TimeSeries/MetricDescriptor request (#222) * Handle test scenarios which send more than one TimeSeries/MetricDescriptor request * comments