Skip to content

Commit

Permalink
nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thugrock7 committed Aug 19, 2024
1 parent 18e8fc5 commit 33ecf58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright The Hypertrace 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.
*/

package org.hypertrace.agent.otel.extensions;

import io.opentelemetry.sdk.metrics.View;
Expand All @@ -7,7 +23,7 @@

public class MetricViewConfiguration {

public static View createHttpServerDurationView() {
public static View createView() {
// Attributes to exclude
Set<String> excludedAttributes =
new HashSet<>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void customize(AutoConfigurationCustomizer autoConfigurationCustomizer) {
autoConfigurationCustomizer.addPropertiesSupplier(this::getProperties);
autoConfigurationCustomizer.addMeterProviderCustomizer(
(builder, config) -> {
View httpServerDurationView = MetricViewConfiguration.createHttpServerDurationView();
View httpServerDurationView = MetricViewConfiguration.createView();
builder.registerView(
InstrumentSelector.builder().setName("*").build(), httpServerDurationView);
return builder;
Expand Down

0 comments on commit 33ecf58

Please sign in to comment.