Skip to content

Commit

Permalink
use metrics config in appender factory
Browse files Browse the repository at this point in the history
  • Loading branch information
yyanyy committed Dec 18, 2020
1 parent 8498aff commit 03a1b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public FileAppender<Record> newAppender(OutputFile outputFile, FileFormat fileFo
return Avro.write(outputFile)
.schema(schema)
.createWriterFunc(DataWriter::create)
.metricsConfig(metricsConfig)
.setAll(config)
.overwrite()
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public FileAppender<RowData> newAppender(OutputFile outputFile, FileFormat forma
.createWriterFunc(ignore -> new FlinkAvroWriter(flinkSchema))
.setAll(props)
.schema(schema)
.metricsConfig(metricsConfig)
.overwrite()
.build();

Expand Down

0 comments on commit 03a1b42

Please sign in to comment.