Skip to content

Commit

Permalink
[receiver/snowflakereceiver] Enable mdatagen by adding doc.go (#17994)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitrii Anoshin <[email protected]>
  • Loading branch information
shalper2 and dmitryax authored Jan 24, 2023
1 parent 7d42760 commit 0aa8212
Show file tree
Hide file tree
Showing 6 changed files with 1,260 additions and 1,097 deletions.
16 changes: 16 additions & 0 deletions .chloggen/snowflake_add_doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: snowflakereceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: added doc.go containing pragma for mdatagen

# One or more tracking issues related to the change
issues: [17978]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
17 changes: 17 additions & 0 deletions receiver/snowflakereceiver/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mdatagen metadata.yaml

package snowflakereceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver"
6 changes: 3 additions & 3 deletions receiver/snowflakereceiver/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,6 @@ Number of bytes of data in Fail-safe.
## Resource Attributes
| Name | Description | Values |
| ---- | ----------- | ------ |
| snowflake.account.name | Snowflake account being used by receiver. | Any Str |
| Name | Description | Values | Enabled |
| ---- | ----------- | ------ | ------- |
| snowflake.account.name | Snowflake account being used by receiver. | Any Str | true |
63 changes: 51 additions & 12 deletions receiver/snowflakereceiver/internal/metadata/generated_metrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0aa8212

Please sign in to comment.