• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ExpediaGroup / beekeeper / #814

07 Apr 2026 07:33PM UTC coverage: 87.706% (-0.07%) from 87.774%
#814

Pull #201

ninhomilton
Clean up
Pull Request #201: Upgrade to Java 21 and Spring Boot 3.2.12

10 of 12 new or added lines in 3 files covered. (83.33%)

115 existing lines in 33 files now uncovered.

1541 of 1757 relevant lines covered (87.71%)

0.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/config/PrometheusConfigFactory.java
1
/**
2
 * Copyright (C) 2019-2020 Expedia, Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package com.expediagroup.beekeeper.core.config;
17

18
import org.springframework.boot.context.properties.ConfigurationProperties;
19
import org.springframework.stereotype.Component;
20

21
import io.micrometer.prometheus.PrometheusConfig;
22

23
@Component
1✔
24
@ConfigurationProperties(prefix = "prometheus")
25
public class PrometheusConfigFactory {
1✔
26

27
  private String prefix = "beekeeper";
UNCOV
28

×
29
  public String getPrefix() {
30
    return prefix;
31
  }
32

1✔
33
  public void setPrefix(String prefix) {
1✔
34
    this.prefix = prefix;
35
  }
36

1✔
37
  public PrometheusConfig newInstance() {
38
    return new PrometheusConfigFactory.DefaultPrometheusConfig(prefix);
39
  }
40

41
  private static class DefaultPrometheusConfig implements PrometheusConfig {
42

43
    private String prefix;
1✔
44

1✔
45
    public DefaultPrometheusConfig(String prefix) {
1✔
46
      this.prefix = prefix;
47
    }
48

49
    @Override
1✔
50
    public String prefix() {
51
      return prefix;
52
    }
53

UNCOV
54
    @Override
×
55
    public String get(String key) {
56
      return null;
57
    }
58
  }
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc