// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package log // import "go.opentelemetry.io/otel/sdk/log"

import (
	
	

	
	
	
	
	semconv 
	
)

// newRecordCounterIncr returns a function that increments the log record
// counter metric. If observability is disabled, it returns nil.
func newRecordCounterIncr() (func(context.Context), error) {
	if !x.Observability.Enabled() {
		return nil, nil
	}

	 := otel.GetMeterProvider().Meter(
		"go.opentelemetry.io/otel/sdk/log",
		metric.WithInstrumentationVersion(sdk.Version()),
		metric.WithSchemaURL(semconv.SchemaURL),
	)

	,  := otelconv.NewSDKLogCreated()
	if  != nil {
		 = fmt.Errorf("failed to create log created metric: %w", )
		return nil, 
	}
	 := .Inst()
	 := func( context.Context) { .Add(, 1) }
	return , nil
}