Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #340]Add http trace http point #527

Merged
merged 49 commits into from
Dec 16, 2021
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
dde6ab5
tracing in AbstractHTTPServer
Roc-00 Sep 15, 2021
2ed29e2
tracing in AbstractHTTPServer
Roc-00 Sep 17, 2021
2293b9c
tracing in AbstractHTTPServer
Roc-00 Sep 20, 2021
2c5cc3d
trace in AbstractHTTPServer
Roc-00 Sep 20, 2021
60e9d69
add licence
Roc-00 Sep 20, 2021
744b16c
add licence
Roc-00 Sep 20, 2021
7479fd9
the span exporter
Roc-00 Sep 20, 2021
53a3fdf
design docs
Roc-00 Sep 20, 2021
40bb928
fix the error on text
Roc-00 Sep 22, 2021
69c62bc
delete the useless dependence
Roc-00 Sep 22, 2021
da9ed30
delete the useless dependence
Roc-00 Sep 22, 2021
3ceb7ee
add license
Roc-00 Sep 22, 2021
eea9212
add license
Roc-00 Sep 22, 2021
3d7b605
remove the unused code
Roc-00 Sep 23, 2021
4a29456
fix the different spanExporter
Roc-00 Sep 24, 2021
66bba23
change the class name
Roc-00 Sep 24, 2021
ac5d236
Merge branch 'develop' into trace3
Roc-00 Sep 24, 2021
d22bb45
fix gradle -build problem
Roc-00 Sep 24, 2021
70499ad
design docs improve
Roc-00 Sep 25, 2021
affc589
Merge branch 'develop' into trace3
Roc-00 Sep 25, 2021
78e2f62
fix the gradle.build error problem
Roc-00 Sep 25, 2021
c1e38d7
fixed
Roc-00 Oct 1, 2021
1e874ca
unsure fix
Roc-00 Oct 1, 2021
5261c1a
fixed
Roc-00 Oct 1, 2021
0cd4fc4
fix the path name
Roc-00 Oct 4, 2021
7de65fc
Merge branch 'develop' into trace3
Roc-00 Oct 22, 2021
51ff1e2
fix the path name
Roc-00 Oct 22, 2021
be96e82
fix check error
Roc-00 Oct 22, 2021
0440060
fix check error
Roc-00 Oct 22, 2021
4da95e7
fix check error
Roc-00 Oct 22, 2021
e3977fa
change the max size of one line from 100 to 120
Roc-00 Oct 22, 2021
d537406
Wrap lines longer than 120 characters
Roc-00 Oct 22, 2021
9578c73
Wrap lines longer than 120 characters
Roc-00 Oct 22, 2021
31d6a61
Wrap lines longer than 120 characters
Roc-00 Oct 22, 2021
9b6e253
format code
Roc-00 Oct 23, 2021
4fca695
format code
Roc-00 Oct 23, 2021
98d7a3e
format code
Roc-00 Oct 23, 2021
037d371
format code
Roc-00 Oct 23, 2021
bb0971d
format code
Roc-00 Oct 23, 2021
6642680
add javadoc
Roc-00 Oct 23, 2021
76b42fd
checkstyle fix
Roc-00 Oct 23, 2021
1ad5545
unversioned files
Roc-00 Nov 22, 2021
71d3bbd
Merge branch 'develop' into trace3
Roc-00 Nov 22, 2021
96b54b8
put context into channel in advance
Roc-00 Nov 22, 2021
6e883b0
Merge branch 'develop' into trace3
Roc-00 Dec 10, 2021
d48de99
Merge branch 'apache:develop' into trace3
Roc-00 Dec 14, 2021
836b13c
fix error
Roc-00 Dec 14, 2021
977b942
fix error
Roc-00 Dec 15, 2021
da634ea
fix error
Roc-00 Dec 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wrap lines longer than 120 characters
  • Loading branch information
Roc-00 committed Oct 22, 2021
commit 31d6a61fea408d49471aba64f15090f7abfd786c
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ public class OpenTelemetryTraceFactory {
// Name of the service(using the instrumentationName)
private final String SERVICE_NAME = "eventmesh_trace";

public OpenTelemetryTraceFactory(CommonConfiguration configuration){
public OpenTelemetryTraceFactory(CommonConfiguration configuration) {
try {
//different spanExporter
String exporterName = configuration.eventMeshTraceExporterType;
//use reflection to get spanExporter
String className = String.format("org.apache.eventmesh.runtime.exporter.%sExporter",exporterName);
String className = String.format("org.apache.eventmesh.runtime.exporter.%sExporter", exporterName);
EventMeshExporter eventMeshExporter = (EventMeshExporter) Class.forName(className).newInstance();
spanExporter = eventMeshExporter.getSpanExporter(configuration);
}catch (Exception ex){
logger.error("fail to set tracer's exporter,due to {}",ex.getMessage());
}catch (Exception ex) {
logger.error("fail to set tracer's exporter,due to {}", ex.getMessage());
//fail to set the exporter in configuration, changing to use the default Exporter
spanExporter = defaultExporter;
logger.info("change to use the default exporter {}",defaultExporter.getClass());
logger.info("change to use the default exporter {}", defaultExporter.getClass());
}

// Configure the batch spans processor. This span processor exports span in batches.
Expand Down