Fix typos (#11348)
Just thought I'd contribute some typo fixes I stumbled upon. Nothing
controversial (hopefully), just 72 simple fixes.
Use the following command to get a quick and dirty summary of the
specific corrections made:
```shell
git diff HEAD^! --word-diff-regex='\w+' -U0 \
| grep -E '\[\-.*\-\]\{\+.*\+\}' \
| sed -r 's/.*\[\-(.*)\-\]\{\+(.*)\+\}.*/\1 \2/' \
| sort | uniq -c | sort -n
```
FWIW, the top typos are:
* invokable (16)
* subsciption (15)
* decison (7)
* reques (3)
* dissallow (3)
* documenation (3)
* locahost (3)
* prerequistes (2)
* assinged (2)
* extenions (2)
---------
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
This commit is contained in:
parent
151f8377d8
commit
42e6304f65
|
|
@ -144,7 +144,7 @@ func initConfig(flags *flag.FlagSet) error {
|
|||
if err := k.Load(env.Provider("", ".", func(s string) string {
|
||||
// Only values from the `dist.` group can be set,
|
||||
// and the subfields in `dist.` contain `_` in their names.
|
||||
// All other fields are arrays and the koanf env provider doesn't provide a straightforward way to set arrarys.
|
||||
// All other fields are arrays and the koanf env provider doesn't provide a straightforward way to set arrays.
|
||||
return strings.Replace(strings.ToLower(s), "dist_", "dist.", 1)
|
||||
}), nil); err != nil {
|
||||
return fmt.Errorf("failed to load environment variables: %w", err)
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ func generateFile(tmplFile string, outputFile string, md Metadata, goPackage str
|
|||
}
|
||||
|
||||
if err := os.Remove(outputFile); err != nil && !errors.Is(err, os.ErrNotExist) {
|
||||
return fmt.Errorf("unable to remove genererated file %q: %w", outputFile, err)
|
||||
return fmt.Errorf("unable to remove generated file %q: %w", outputFile, err)
|
||||
}
|
||||
|
||||
result := buf.Bytes()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{{- define "metric-documenation" -}}
|
||||
{{- define "metric-documentation" -}}
|
||||
{{- $metricName := . }}
|
||||
{{- $metric := $metricName | metricInfo -}}
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ metrics:
|
|||
{{- range $metricName, $metric := .Metrics }}
|
||||
{{- if $metric.Enabled }}
|
||||
|
||||
{{ template "metric-documenation" $metricName }}
|
||||
{{ template "metric-documentation" $metricName }}
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
@ -105,7 +105,7 @@ metrics:
|
|||
{{- end }}
|
||||
{{- $optionalMetricSeen = true }}
|
||||
|
||||
{{ template "metric-documenation" $metricName }}
|
||||
{{ template "metric-documentation" $metricName }}
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ func (grpcDialOptionWrapper) isToClientConnOption() {}
|
|||
// ToClientConn creates a client connection to the given target. By default, it's
|
||||
// a non-blocking dial (the function won't wait for connections to be
|
||||
// established, and connecting happens in the background). To make it a blocking
|
||||
// dial, use the WithGrpcDiqlOption(grpc.WithBlock()) option.
|
||||
// dial, use the WithGrpcDialOption(grpc.WithBlock()) option.
|
||||
func (gcs *ClientConfig) ToClientConn(
|
||||
ctx context.Context,
|
||||
host component.Host,
|
||||
|
|
|
|||
|
|
@ -566,7 +566,7 @@ func TestCertificateReload(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
assert.NotNil(t, cfg)
|
||||
|
||||
// Asssert that we loaded the original certificate
|
||||
// Assert that we loaded the original certificate
|
||||
cert, err := cfg.GetCertificate(&tls.ClientHelloInfo{})
|
||||
require.NoError(t, err)
|
||||
assert.NotNil(t, cert)
|
||||
|
|
|
|||
|
|
@ -523,10 +523,10 @@ type Marshaler interface {
|
|||
// }
|
||||
//
|
||||
// The configuration provided by users may have following cases
|
||||
// 1. configuration have `keys` field and have a non-nil values for this key, the output should be overrided
|
||||
// 1. configuration have `keys` field and have a non-nil values for this key, the output should be overridden
|
||||
// - for example, input is {"keys", ["c"]}, then output is Config{ Keys: ["c"]}
|
||||
//
|
||||
// 2. configuration have `keys` field and have an empty slice for this key, the output should be overrided by empty slics
|
||||
// 2. configuration have `keys` field and have an empty slice for this key, the output should be overridden by empty slices
|
||||
// - for example, input is {"keys", []}, then output is Config{ Keys: []}
|
||||
//
|
||||
// 3. configuration have `keys` field and have nil value for this key, the output should be default config
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ How this new component httpprovider works?
|
|||
Expected URI format:
|
||||
- http://...
|
||||
|
||||
Prerequistes:
|
||||
Prerequisites:
|
||||
- Need to setup a HTTP server ahead, which returns with a config files according to the given URI
|
||||
|
|
@ -6,7 +6,7 @@ load configuration files stored in web servers.
|
|||
Expected URI format:
|
||||
- https://...
|
||||
|
||||
### Prerequistes
|
||||
### Prerequisites
|
||||
|
||||
You need to setup a HTTP server with support to HTTPS. The server must have a certificate that can be validated in the
|
||||
host running the collector using system root certificates.
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ func TestResolverErrors(t *testing.T) {
|
|||
expectResolveErr: true,
|
||||
},
|
||||
{
|
||||
name: "retrieve location not convertable to Conf",
|
||||
name: "retrieve location not convertible to Conf",
|
||||
locations: []string{"mock:", "err:"},
|
||||
providers: []Provider{
|
||||
&mockProvider{},
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ Is this acceptable? Should we:
|
|||
The current implementation of component status reporting added a new field to `component.TelemetrySettings`, `ReportStatus`. This field is technically optional, but would be marked as stable with component 1.0. Are we ok with 1 of the following?
|
||||
|
||||
1. Including a component status reporting feature, `component.TelemetrySettings.ReportStatus`, in the 1.0 version of `component.TelemetrySettings`?
|
||||
2. Marking `component.TelemetrySettings.ReportStatus` as experimentatal via godoc comments in the 1.0 version of `component.TelemetrySettings`?
|
||||
2. Marking `component.TelemetrySettings.ReportStatus` as experimental via godoc comments in the 1.0 version of `component.TelemetrySettings`?
|
||||
|
||||
Or should we refactor `component` somehow to remove `ReportStatus` from `component.TelemetrySettings`?
|
||||
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ func TestConsumeMetricsSuccess(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
func TestCapabilites(t *testing.T) {
|
||||
func TestCapabilities(t *testing.T) {
|
||||
mc := newMockConsumer(func() error { return nil })
|
||||
assert.Equal(t, consumer.Capabilities{}, mc.Capabilities())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import (
|
|||
)
|
||||
|
||||
// NewLogs wraps multiple log consumers in a single one.
|
||||
// It fanouts the incoming data to all the consumers, and does smart routing:
|
||||
// It fans out the incoming data to all the consumers, and does smart routing:
|
||||
// - Clones only to the consumer that needs to mutate the data.
|
||||
// - If all consumers needs to mutate the data one will get the original mutable data.
|
||||
func NewLogs(lcs []consumer.Logs) consumer.Logs {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
// NewMetrics wraps multiple metrics consumers in a single one.
|
||||
// It fanouts the incoming data to all the consumers, and does smart routing:
|
||||
// It fans out the incoming data to all the consumers, and does smart routing:
|
||||
// - Clones only to the consumer that needs to mutate the data.
|
||||
// - If all consumers needs to mutate the data one will get the original mutable data.
|
||||
func NewMetrics(mcs []consumer.Metrics) consumer.Metrics {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import (
|
|||
)
|
||||
|
||||
// NewProfiles wraps multiple profile consumers in a single one.
|
||||
// It fanouts the incoming data to all the consumers, and does smart routing:
|
||||
// It fans out the incoming data to all the consumers, and does smart routing:
|
||||
// - Clones only to the consumer that needs to mutate the data.
|
||||
// - If all consumers needs to mutate the data one will get the original mutable data.
|
||||
func NewProfiles(tcs []consumerprofiles.Profiles) consumerprofiles.Profiles {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
// NewTraces wraps multiple trace consumers in a single one.
|
||||
// It fanouts the incoming data to all the consumers, and does smart routing:
|
||||
// It fans out the incoming data to all the consumers, and does smart routing:
|
||||
// - Clones only to the consumer that needs to mutate the data.
|
||||
// - If all consumers needs to mutate the data one will get the original mutable data.
|
||||
func NewTraces(tcs []consumer.Traces) consumer.Traces {
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ var NoopTracerProvider = featuregate.GlobalRegistry().MustRegister("service.noop
|
|||
featuregate.WithRegisterToVersion("v0.109.0"),
|
||||
featuregate.WithRegisterDescription("Sets a Noop OpenTelemetry TracerProvider to reduce memory allocations. This featuregate is incompatible with the zPages extension."))
|
||||
|
||||
// UseLocalHostAsDefaultHostfeatureGate is the feature gate that controls whether
|
||||
// server-like receivers and extensions such as the OTLP receiver use localhost as the default host for their endpoints.
|
||||
var _ = mustRegisterOrLoad(
|
||||
featuregate.GlobalRegistry(),
|
||||
"component.UseLocalHostAsDefaultHost",
|
||||
|
|
|
|||
|
|
@ -81,9 +81,9 @@ func TestGetDecision(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestRefuseDecision(t *testing.T) {
|
||||
decison1000Limit30Spike30 := newPercentageMemUsageChecker(1000, 60, 30)
|
||||
decison1000Limit60Spike50 := newPercentageMemUsageChecker(1000, 60, 50)
|
||||
decison1000Limit40Spike20 := newPercentageMemUsageChecker(1000, 40, 20)
|
||||
decision1000Limit30Spike30 := newPercentageMemUsageChecker(1000, 60, 30)
|
||||
decision1000Limit60Spike50 := newPercentageMemUsageChecker(1000, 60, 50)
|
||||
decision1000Limit40Spike20 := newPercentageMemUsageChecker(1000, 40, 20)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
|
@ -93,13 +93,13 @@ func TestRefuseDecision(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
name: "should refuse over limit",
|
||||
usageChecker: *decison1000Limit30Spike30,
|
||||
usageChecker: *decision1000Limit30Spike30,
|
||||
ms: &runtime.MemStats{Alloc: 600},
|
||||
shouldRefuse: true,
|
||||
},
|
||||
{
|
||||
name: "should not refuse",
|
||||
usageChecker: *decison1000Limit30Spike30,
|
||||
usageChecker: *decision1000Limit30Spike30,
|
||||
ms: &runtime.MemStats{Alloc: 100},
|
||||
shouldRefuse: false,
|
||||
},
|
||||
|
|
@ -114,13 +114,13 @@ func TestRefuseDecision(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "should refuse, spike, percentage usageChecker",
|
||||
usageChecker: *decison1000Limit60Spike50,
|
||||
usageChecker: *decision1000Limit60Spike50,
|
||||
ms: &runtime.MemStats{Alloc: 300},
|
||||
shouldRefuse: true,
|
||||
},
|
||||
{
|
||||
name: "should refuse, spike, percentage usageChecker",
|
||||
usageChecker: *decison1000Limit40Spike20,
|
||||
usageChecker: *decision1000Limit40Spike20,
|
||||
ms: &runtime.MemStats{Alloc: 250},
|
||||
shouldRefuse: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ func TestComponentStatusWatcher(t *testing.T) {
|
|||
wg := startCollector(context.Background(), t, col)
|
||||
|
||||
// An unhealthy processor asynchronously reports a recoverable error. Depending on the Go
|
||||
// Scheduler the statuses reported at startup will be one of the two valid sequnces below.
|
||||
// Scheduler the statuses reported at startup will be one of the two valid sequences below.
|
||||
startupStatuses1 := []componentstatus.Status{
|
||||
componentstatus.StatusStarting,
|
||||
componentstatus.StatusOK,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ func ReadEnumValue(iter *jsoniter.Iterator, valueMap map[string]int32) int32 {
|
|||
return iter.ReadInt32()
|
||||
case jsoniter.StringValue:
|
||||
val, ok := valueMap[iter.ReadString()]
|
||||
// Same behavior with official protbuf JSON decoder,
|
||||
// Same behavior with official protobuf JSON decoder,
|
||||
// see https://github.com/open-telemetry/opentelemetry-proto-go/pull/81
|
||||
if !ok {
|
||||
iter.ReportError("ReadEnumValue", "unknown string value")
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ func NewProfileIDEmpty() ProfileID {
|
|||
return emptyProfileID
|
||||
}
|
||||
|
||||
// String returns string representation of the ProifleID.
|
||||
// String returns string representation of the ProfileID.
|
||||
//
|
||||
// Important: Don't rely on this method to get a string identifier of ProfileID.
|
||||
// Use hex.EncodeToString explicitly instead.
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ func (mb *multiShardBatcher) consume(ctx context.Context, data any) error {
|
|||
}
|
||||
|
||||
// aset.ToSlice() returns the sorted, deduplicated,
|
||||
// and name-downcased list of attributes.
|
||||
// and name-lowercased list of attributes.
|
||||
var loaded bool
|
||||
b, loaded = mb.batchers.LoadOrStore(aset, mb.processor.newShard(md))
|
||||
if !loaded {
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -393,12 +393,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -393,12 +393,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -423,12 +423,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -423,12 +423,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -423,12 +423,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ const (
|
|||
// Stability: experimental
|
||||
// Examples: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function', '//run.googl
|
||||
// eapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID', '/sub
|
||||
// scriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// scriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// /<FUNCAPP>/functions/<FUNC>'
|
||||
// Note: On some cloud providers, it may not be possible to determine the full ID
|
||||
// at startup,
|
||||
|
|
@ -120,12 +120,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ const (
|
|||
// Stability: experimental
|
||||
// Examples: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function', '//run.googl
|
||||
// eapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID', '/sub
|
||||
// scriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// scriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// /<FUNCAPP>/functions/<FUNC>'
|
||||
// Note: On some cloud providers, it may not be possible to determine the full ID
|
||||
// at startup,
|
||||
|
|
@ -133,12 +133,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
@ -441,7 +441,7 @@ const (
|
|||
// K8S defines a link to the container registry repository with digest "imageID":
|
||||
// "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e
|
||||
// 8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625".
|
||||
// The ID is assinged by the container runtime and can vary in different
|
||||
// The ID is assigned by the container runtime and can vary in different
|
||||
// environments. Consider using oci.manifest.digest if it is important to identify
|
||||
// the same image in different environments/runtimes.
|
||||
AttributeContainerImageID = "container.image.id"
|
||||
|
|
|
|||
|
|
@ -823,7 +823,7 @@ const (
|
|||
// Stability: experimental
|
||||
// Examples: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function', '//run.googl
|
||||
// eapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID', '/sub
|
||||
// scriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// scriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// /<FUNCAPP>/functions/<FUNC>'
|
||||
// Note: On some cloud providers, it may not be possible to determine the full ID
|
||||
// at startup,
|
||||
|
|
@ -835,12 +835,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
@ -1078,7 +1078,7 @@ const (
|
|||
// K8S defines a link to the container registry repository with digest "imageID":
|
||||
// "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e
|
||||
// 8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625".
|
||||
// The ID is assinged by the container runtime and can vary in different
|
||||
// The ID is assigned by the container runtime and can vary in different
|
||||
// environments. Consider using oci.manifest.digest if it is important to identify
|
||||
// the same image in different environments/runtimes.
|
||||
AttributeContainerImageID = "container.image.id"
|
||||
|
|
|
|||
|
|
@ -651,7 +651,7 @@ const (
|
|||
// Stability: experimental
|
||||
// Examples: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function', '//run.googl
|
||||
// eapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID', '/sub
|
||||
// scriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// scriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// /<FUNCAPP>/functions/<FUNC>'
|
||||
// Note: On some cloud providers, it may not be possible to determine the full ID
|
||||
// at startup,
|
||||
|
|
@ -663,12 +663,12 @@ const (
|
|||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix
|
||||
// with the resolved function version, as the same runtime instance may be
|
||||
// invokable with
|
||||
// invocable with
|
||||
// multiple different aliases.</li>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
|
|||
|
|
@ -810,7 +810,7 @@ const (
|
|||
// Stability: experimental
|
||||
// Examples: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function', '//run.googl
|
||||
// eapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID', '/sub
|
||||
// scriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// scriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites
|
||||
// /<FUNCAPP>/functions/<FUNC>'
|
||||
// Note: On some cloud providers, it may not be possible to determine the full ID
|
||||
// at startup,
|
||||
|
|
@ -827,7 +827,7 @@ const (
|
|||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID of the invoked function,
|
||||
// not the function app, having the form
|
||||
// /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// /subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/s
|
||||
// ites/<FUNCAPP>/functions/<FUNC>.
|
||||
// This means that a span attribute MUST be used, as an Azure function app can
|
||||
// host multiple functions that would usually share
|
||||
|
|
@ -3009,7 +3009,7 @@ const (
|
|||
|
||||
// The generic attributes that may be used in any Log Record.
|
||||
const (
|
||||
// The complete orignal Log Record.
|
||||
// The complete original Log Record.
|
||||
//
|
||||
// Type: string
|
||||
// Requirement Level: Optional
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -327,7 +327,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ const (
|
|||
// </ul>
|
||||
// Take care not to use the "invoked ARN" directly but replace any
|
||||
// alias suffix with the resolved function version, as the same runtime instance
|
||||
// may be invokable with multiple
|
||||
// may be invocable with multiple
|
||||
// different aliases.<ul>
|
||||
// <li>GCP: The URI of the resource</li>
|
||||
// <li>Azure: The Fully Qualified Resource ID.</li>
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ func TestOrdering(t *testing.T) {
|
|||
{name: "foo", deps: []string{"bar"}},
|
||||
{name: "bar", deps: []string{"foo"}},
|
||||
},
|
||||
err: "unable to order extenions",
|
||||
err: "unable to order extensions",
|
||||
},
|
||||
}
|
||||
for _, testCase := range tests {
|
||||
|
|
|
|||
|
|
@ -73,5 +73,5 @@ func cycleErr(err error, cycles [][]graph.Node) error {
|
|||
names = append(names, node.extID.String())
|
||||
}
|
||||
cycleStr := "[" + strings.Join(names, " -> ") + "]"
|
||||
return fmt.Errorf("unable to order extenions by dependencies, cycle found %s: %w", cycleStr, err)
|
||||
return fmt.Errorf("unable to order extensions by dependencies, cycle found %s: %w", cycleStr, err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ type TracesConfig struct {
|
|||
// context propagation is disabled.
|
||||
Propagators []string `mapstructure:"propagators"`
|
||||
// Processors allow configuration of span processors to emit spans to
|
||||
// any number of suported backends.
|
||||
// any number of supported backends.
|
||||
Processors []config.SpanProcessor `mapstructure:"processors"`
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ func TestMetricReader(t *testing.T) {
|
|||
Pull: &config.PullMetricReader{
|
||||
Exporter: config.MetricExporter{
|
||||
Prometheus: &config.Prometheus{
|
||||
Host: strPtr("locahost"),
|
||||
Host: strPtr("localhost"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -94,7 +94,7 @@ func TestMetricReader(t *testing.T) {
|
|||
Pull: &config.PullMetricReader{
|
||||
Exporter: config.MetricExporter{
|
||||
Prometheus: &config.Prometheus{
|
||||
Host: strPtr("locahost"),
|
||||
Host: strPtr("localhost"),
|
||||
Port: intPtr(8080),
|
||||
},
|
||||
},
|
||||
|
|
@ -108,7 +108,7 @@ func TestMetricReader(t *testing.T) {
|
|||
Periodic: &config.PeriodicMetricReader{
|
||||
Exporter: config.MetricExporter{
|
||||
Prometheus: &config.Prometheus{
|
||||
Host: strPtr("locahost"),
|
||||
Host: strPtr("localhost"),
|
||||
Port: intPtr(8080),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue